def _get_metadata_map_from_client_details(client_call_details):
    """Get metadata key->value map from client_call_details"""
    metadata = {metadatum[0]: metadatum[1] for metadatum in (client_call_details.metadata or [])}
    return metadata