code: def read_json(file_path, np_arr=False):
      """Get the contents of the .json file located at `file_path`
  
      Parameters
      ----------
      file_path: String
          The path of the .json file to be read
      np_arr: Boolean, default=False
          If True, the contents read from `file_path` will be cast to a numpy array before returning
  
      Returns
      -------
      content: Object
          The contents of the .json file located at `file_path`"""
      content = json.loads(
          open(file_path).read(), object_hook=hook_json_read
      )
  
      if np_arr is True:
          return np.array(content)
  
      return content
  
imports: from hyperparameter_hunter.settings import G
  from contextlib import suppress
  from inspect import signature
  import numpy
  import os
  import os.path
  import pandas
  import simplejson
  from typing import Union
  import wrapt
label_desc: Use image node_id 4 for calling a global function with example usage: read_json(file_path, np_arr) and returns: content, np