code: def __init__(self, hash_name="xxhash", protocol=None):
      # Initialise the hash obj
      if not isinstance(hash_name, str):
          self._hash = hash_name
      elif hash_name == "xxhash":
          self._hash = xxh()
      else:
          self._hash = hashlib.new(hash_name)
      self.stream = _FileWriteToHash(self._hash)
      protocol = protocol or pickle.HIGHEST_PROTOCOL
      Pickler.__init__(self, self.stream, protocol=protocol)
  
imports: import hashlib
  import pickle
  import struct
  import sys
  import tempfile
  import time
  import traceback
  from pathlib import Path
  from typing import TYPE_CHECKING, Union
  from joblib.hashing import Hasher, Pickler
  from joblib.memory import MemorizedFunc, MemorizedResult, Memory, NotMemorizedResult, _format_load_msg, filter_args, format_call, format_signature, format_time, get_func_name
  from xxhash import xxh128
label_desc: Use image node_id 1 to create a new FastHasher object from inherited base classes: Hasher with example: obj = FastHasher(hash_name, protocol)