code: def load(self, file, digest=None, *args, **kwargs):
      if digest:
          content = file.read()
          new_digest = hmac.new(
              self.key, content, hashlib.sha1
          ).hexdigest()
          if digest != new_digest:
              invalidInputError(False, "Pickle safe check failed")
          file.seek(0)
      return pickle.load(file, *args, **kwargs)
  
file_path: BigDL/python/ppml/src/bigdl/ppml/utils/safepickle.py
imports: import pickle
  import hmac
  import hashlib
  from bigdl.ppml.utils.log4Error import invalidInputError
label_desc: Use image node_id 2 for calling the SafePickle obj's underlying member method code with example usage: obj.load(file, digest) and returns: pickle