def read_metadata(pid, n):
"""
Reads the metadata object for a given problem instance.
Args:
pid: the problem id
n: the problem instance
Returns:
The metadata object
"""
metadata_path = get_metadata_path(pid, n)
with open(metadata_path, "r") as f:
return json_util.loads(f.read())
评论列表
文章目录