import json


def _read_dca_metadata_file(metadata_path):
    """Loads context aware metadata from the given path.

    Args:
        metadata_path (str): context aware metadata path.

    Returns:
        Dict[str, str]: The metadata.

    Raises:
        ValueError: If failed to parse metadata as JSON.
    """
    with open(metadata_path) as f:
        metadata = json.load(f)

    return metadata