def METHOD_NAME(self,
           endpoint: str,
           service: str,
           version: str,
           region: str) -> Client:
    """client"""
    http_profile = HttpProfile()
    # use regional endpoint, instead of roundtripping to centralized one.
    # in practice this can greatly reduce latency on roundtrips
    if region:
        parts = endpoint.split('.')
        parts.insert(1, region)
        endpoint = '.'.join(parts)
    http_profile.endpoint = endpoint
    client_profile = ClientProfile()
    client_profile.httpProfile = http_profile
    cli = Client(self._cred, service, version, client_profile, region)
    return cli