code: def _InferenceAPI_dumper(
      dumper: yaml.Dumper, api: InferenceAPI[t.Any]
  ) -> yaml.Node:
      return dumper.represent_dict(
          {
              "route": api.route,
              "doc": api.doc,
              "input": api.input.__class__.__name__,
              "output": api.output.__class__.__name__,
          }
      )
  
file_path: BentoML/src/bentoml/_internal/service/inference_api.py
imports: from __future__ import annotations
  import inspect
  import re
  import typing
  import yaml
  from ...exceptions import InvalidArgument
  from ..context import ServiceContext
  from ..io_descriptors import IODescriptor
  from ..io_descriptors.base import IOType
  from ..types import is_compatible_type
label_desc: Use image node_id 1 for calling a global function with example usage: _InferenceAPI_dumper(dumper, api) and returns: dumper