def composite_call_credentials(*call_credentials): """Compose multiple CallCredentials to make a new CallCredentials. Args: *call_credentials: At least two CallCredentials objects. Returns: A CallCredentials object composed of the given CallCredentials objects. """ from grpc import _credential_composition cygrpc_call_credentials = tuple( single_call_credentials._credentials for single_call_credentials in call_credentials) return CallCredentials( _credential_composition.call(cygrpc_call_credentials))