def METHOD_NAME(metadata: dict, minimal_metadata_path: str):
    """Validate supplied metadata against a minimal metadata file
    Args:
        metadata: Supplied metadata for model or deployment
        minimal_metadata_path: Path to minimal model/deployment metadata for validation
    Raises:
        InvalidMetadata: Supplied metadata does not contain all the required parameters
    Returns:
        dict: Dictionary of validity and error messages
    """
    with open(minimal_metadata_path, encoding="utf-8") as json_file:
        minimal_metadata = json.load(json_file)
    result = minimal_keys_in_dictionary(minimal_metadata, metadata)
    if not result["valid"]:
        raise InvalidMetadata(
            f"Metadata {result['error_message']} - refer to minimal_metadata"
        )