code: def _flexhash(elem: Any) -> int:
      """Hashing that also handles lists/dicts (for 'unique' check)."""
      if isinstance(elem, list):
          return hash(tuple(_flexhash(e) for e in elem))
      elif isinstance(elem, dict):
          return hash(
              (_flexhash(k), _flexhash(v)) for k, v in elem.items()
          )
      return hash(elem)
  
imports: from __future__ import annotations
  import os
  from datetime import datetime, timedelta
  from itertools import chain
  from random import choice, shuffle
  from string import ascii_uppercase
  from typing import TYPE_CHECKING, Any, Callable, Iterator, Mapping, MutableMapping, Sequence
  from hypothesis.strategies import SearchStrategy, binary, booleans, characters, composite, dates, datetimes, decimals, floats, from_type, integers, lists, sampled_from, sets, text, timedeltas, times
  from polars.datatypes import Binary, Boolean, Categorical, Date, Datetime, Decimal, Duration, Float32, Float64, Int8, Int16, Int32, Int64, List, String, Time, UInt8, UInt16, UInt32, UInt64, is_polars_dtype
  from polars.type_aliases import PolarsDataType
  from polars.utils.deprecation import deprecate_nonkeyword_arguments
label_desc: Use image node_id 5 for calling a global function with example usage: _flexhash(elem) and returns: hash, hash, hash