code: def safe_load(stream: bytes | str | BinaryIO | TextIO) -> Any:
      """Like yaml.safe_load, but use the C libyaml for speed where we can."""
      # delay import until use.
      from yaml import load as orig
  
      try:
          from yaml import CSafeLoader as SafeLoader
      except ImportError:
          from yaml import SafeLoader  # type: ignore[assignment, no-redef]
  
      return orig(stream, SafeLoader)
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, BinaryIO, TextIO, cast
label_desc: Use image node_id 1 for calling a global function with example usage: safe_load(stream) and returns: orig