code: def dump(data: Any, **kwargs) -> str:
      """Like yaml.safe_dump, but use the C libyaml for speed where we can."""
      # delay import until use.
      from yaml import dump as orig
  
      try:
          from yaml import CSafeDumper as SafeDumper
      except ImportError:
          from yaml import SafeDumper  # type: ignore[assignment, no-redef]
  
      return cast(str, orig(data, Dumper=SafeDumper, **kwargs))
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, BinaryIO, TextIO, cast
label_desc: Use image node_id 2 for calling a global function with example usage: dump(data) and returns: cast