code: def load_json(load_path: str, encoding: str = "utf-8"):
      """
      Loads json formatted data (given as "data") from load_path
      Encoding type can be specified with 'encoding' argument
  
      Example inputs:
          load_path: "dirname/coco.json"
      """
      # read from path
      with open(load_path, encoding=encoding) as json_file:
          data = json.load(json_file)
      return data
  
imports: import glob
  import json
  import ntpath
  import os
  import pickle
  import re
  import urllib.request
  import zipfile
  from pathlib import Path
  from typing import Optional
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: load_json(load_path, encoding) and returns: data