code: def _get_special_chain_info_or_none(chain):
      for (
          special_chain_class,
          loader_arg,
      ) in _get_map_of_special_chain_class_to_loader_arg().items():
          if isinstance(chain, special_chain_class):
              return _SpecialChainInfo(loader_arg=loader_arg)
  
imports: import json
  import logging
  import os
  import shutil
  import types
  from functools import lru_cache
  from importlib.util import find_spec
  from typing import Any, List, NamedTuple, Optional
  import cloudpickle
  import yaml
  from packaging import version
  import mlflow
  from mlflow.utils.class_utils import _get_class_from_string
label_desc: Use image node_id 9 for calling a global function with example usage: _get_special_chain_info_or_none(chain) and returns: _SpecialChainInfo