code: def test_hash_memmap(tmpdir, coerce_mmap):
      """Check that memmap and arrays hash identically if coerce_mmap is True."""
      filename = tmpdir.join("memmap_temp").strpath
      try:
          m = np.memmap(filename, shape=(10, 10), mode="w+")
          a = np.asarray(m)
          are_hashes_equal = hash(a, coerce_mmap=coerce_mmap) == hash(
              m, coerce_mmap=coerce_mmap
          )
          assert are_hashes_equal == coerce_mmap
      finally:
          if "m" in locals():
              del m
              # Force a garbage-collection cycle, to be certain that the
              # object is delete, and we don't run in a problem under
              # Windows with a file handle still open.
              gc.collect()
  
imports: import gc
  import itertools
  import pickle
  import sys
  import time
  from concurrent.futures import ProcessPoolExecutor
  import numpy
  import pandas
  import pytest
  from sklearn.base import BaseEstimator
  from xxhash import xxh128
  from pycaret.datasets import get_data
  from pycaret.internal.memory import fast_hash
  from pycaret.regression import RegressionExperiment
label_desc: Use image node_id 12 for calling a global function with example usage: test_hash_memmap(tmpdir, coerce_mmap) without return types