def METHOD_NAME(self, name: str, val: Any):
    """
    Append a metadata entry to the index file.
    Args:
        name (str): name of the metadata.
        val (Any): value of the metadata.
    """
    self.metadata[name] = val