code: def json_convert(path):
      with open(path, "r+") as f:
          coco_data = json.load(f)
          coco_data["categories"].append(
              {"id": 0, "name": "background"}
          )
          coco_data["categories"] = sorted(
              coco_data["categories"], key=lambda x: x["id"]
          )
          f.seek(0)
          json.dump(coco_data, f)
          f.truncate()
  
imports: import argparse
  import json
  import os.path
label_desc: Use image node_id 1 for calling a global function with example usage: json_convert(path) without return types