def METHOD_NAME(self, param_name: str, shard_file: str):
    """
    Append a weight map entry to the index file.
    Args:
        param_name (str): name of the parameter.
        shard_file (str): name of the shard file.
    """
    self.weight_map[param_name] = shard_file