in elasticsearch_serverless/_async/helpers.py [0:0]
def pop_transport_kwargs(kw: MutableMapping[str, Any]) -> MutableMapping[str, Any]:
# Grab options that should be propagated to every
# API call within this helper instead of just 'search()'
transport_kwargs = {}
for key in ("headers", "api_key", "http_auth", "basic_auth", "bearer_auth"):
try:
value = kw.pop(key)
if key == "http_auth":
key = "basic_auth"
transport_kwargs[key] = value
except KeyError:
pass
return transport_kwargs