class_docstr: Defines the meta data that's saved in a serialization directory and archive
  when training an AllenNLP model.
code: def to_file(self, path: Union[PathLike, str]) -> None:
      with open(path, "w") as meta_file:
          json.dump(asdict(self), meta_file)
  
file_path: allennlp/allennlp/common/meta.py
imports: from os import PathLike
  from dataclasses import dataclass, asdict
  import json
  import logging
  from typing import Union
  from allennlp.version import VERSION
label_desc: Use image node_id 2 for calling the Meta obj's underlying member method code with example usage: obj.to_file(path) without return types