code: def hash_tuple(val, encoding="utf8", hash_key=None):
      """
      Hash a single tuple efficiently
  
      Parameters
      ----------
      val : single tuple
      encoding : string, default 'utf8'
      hash_key : string key to encode, default to _default_hash_key
  
      Returns
      -------
      hash
  
      """
      hashes = (
          _hash_scalar(v, encoding=encoding, hash_key=hash_key)
          for v in val
      )
  
      h = _combine_hash_arrays(hashes, len(val))[0]
  
      return h
  
file_path: catboost/contrib/python/pandas/py2/pandas/core/util/hashing.py
imports: import itertools
  import numpy
  from pandas._libs import hashing, tslibs
  from pandas.core.dtypes.cast import infer_dtype_from_scalar
  from pandas.core.dtypes.common import is_categorical_dtype, is_extension_array_dtype, is_list_like
  from pandas.core.dtypes.generic import ABCDataFrame, ABCIndexClass, ABCMultiIndex, ABCSeries
  from pandas.core.dtypes.missing import isna
label_desc: Use image node_id 4 for calling a global function with example usage: hash_tuple(val, encoding, hash_key) and returns: h