code: def save_pickle(obj, path, protocol=pickle.HIGHEST_PROTOCOL):
      """
      Save any python Object in pickle file
      Parameters
      ----------
      obj : any Python Object
      path : str
          File path where the pickled object will be stored.
      protocol : int
          Int which indicates which protocol should be used by the pickler,
          default HIGHEST_PROTOCOL
      """
  
      if not isinstance(path, str):
          raise ValueError(
              """
              path parameter must be a string
              """
          )
  
      if not isinstance(protocol, int):
          raise ValueError(
              """
              protocol parameter must be an integer
              """
          )
      with open(path, "wb") as file:
          pickle.dump(obj, file, protocol=protocol)
  
label_desc: Use image node_id 1 for calling a global function with example usage: save_pickle(obj, path, protocol) without return types