def _is_mostly_subdomain_compatible(bucket_name):
return (bucket_name.lower() == bucket_name and<EOL>len(bucket_name) >= <NUM_LIT:3> and<EOL>len(bucket_name) <= <NUM_LIT> and<EOL>'<STR_LIT:_>' not in bucket_name and<EOL>'<STR_LIT:..>' not in bucket_name and<EOL>'<STR_LIT>' not in bucket_name and<EOL>'<STR_LIT>' not in bucket_name and<EOL>not bucket_name.startswith('<STR_LIT:->') and<EOL>not bucket_name.endswith('<STR_LIT:->') and<EOL>not bucket_name.startswith('<STR_LIT:.>') and<EOL>not bucket_name.endswith('<STR_LIT:.>') and<EOL>not _is_ipv4_like(bucket_name))<EOL>
Returns True if SubdomainCallingFormat can be used...mostly

    This checks to make sure that putting aside certificate validation
    issues that a bucket_name is able to use the
    SubdomainCallingFormat.