code: def custom_type_to_loader_dict():
      # helper function to load output_parsers from config
      def _load_output_parser(config: dict) -> dict:
          """Load output parser."""
          from langchain.schema.output_parser import StrOutputParser
  
          output_parser_type = config.pop("_type", None)
          if output_parser_type == "default":
              return StrOutputParser(**config)
          else:
              raise ValueError(
                  f"Unsupported output parser {output_parser_type}"
              )
  
      return {"default": _load_output_parser}
  
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 8 for calling a global function with example usage: custom_type_to_loader_dict() and returns: dict, StrOutputParser