code: def _load(model: str, **kwargs: Any) -> TLoadZoo:
      fn = (
          DLZoo.load_config
          if kwargs.pop("load_config", False)
          else DLZoo.load_pipeline
      )
      return fn(model, **kwargs)
  
imports: from typing import Any
  from typing import Union
  from cftool.types import tensor_dict_type
  from ...schema import DLConfig
  from ...zoo.core import DLZoo
  from ...zoo.core import TPipeline
  from ...models.cv.diffusion.utils import CONCAT_TYPE
label_desc: Use image node_id 1 for calling a global function with example usage: _load(model) and returns: fn