code: def _is_dict(obj):
      """support all dict-like types"""
      return hasattr(obj, "__contains__") and hasattr(obj, "items")
  
imports: from enum import Enum
  from typing import Any, Dict, List, Tuple, Type, Union
  from pytext.common.utils import eprint
  from .component import Registry
  from .config_adapter import upgrade_to_latest
  from .pytext_config import PyTextConfig
label_desc: Use image node_id 17 for calling a global function with example usage: _is_dict(obj) and returns: unknown