code: def _main():
      args = _parse_args()
      model, cfg = _load(args.model_file)
  
      if model.__class__.__name__ == "HubertModel":
          cfg["task"]["data"] = "/foo/bar"
          cfg["task"]["label_dir"] = None
          conf = {
              "_name": "hubert",
              "model": cfg["model"],
              "task": cfg["task"],
              "num_classes": model.num_classes,
          }
      elif model.__class__.__name__ == "HubertCtc":
          conf = cfg["model"]
          del conf["w2v_path"]
          keep = ["_name", "task", "model"]
          for key in conf["w2v_args"]:
              if key not in keep:
                  del conf["w2v_args"][key]
          conf["data"] = "/foo/bar/"
          conf["w2v_args"]["task"]["data"] = "/foo/bar"
          conf["w2v_args"]["task"]["labels"] = []
          conf["w2v_args"]["task"]["label_dir"] = "/foo/bar"
      print(json.dumps(conf, indent=4, sort_keys=True))
  
imports: import argparse
  import json
label_desc: Use image node_id 3 for calling a global function with example usage: _main() without return types