A man has been seriously injured in a dog attack in West Bromwich.