code: def _always_use_pickle_for(x):
      mod, _, _ = x.__class__.__module__.partition(".")
      if mod == "numpy":
          import numpy as np
  
          return isinstance(x, np.ndarray)
      elif mod == "pandas":
          import pandas as pd
  
          return isinstance(x, pd.core.generic.NDFrame)
      elif mod == "builtins":
          return isinstance(x, (str, bytes))
      else:
          return False
  
file_path: distributed/distributed/protocol/pickle.py
imports: from __future__ import annotations
  import inspect
  import io
  import logging
  import pickle
  import cloudpickle
  from packaging.version import parse
  from distributed.protocol.serialize import dask_deserialize, dask_serialize
label_desc: Use image node_id 1 for calling a global function with example usage: _always_use_pickle_for(x) and returns: isinstance, isinstance, isinstance, False