code: def yaml_safe_load(f: Union[io.FileIO, IO[Any], str]) -> Any:
      """
      A utility wrapper to mimick the pre-0.18.0 ruamel.yaml.safe_load() API.
  
      In user-facing places like the CLI, safe_load_yaml_with_exceptions may be preferable.
  
      In internal places like e2e tests, this yaml_safe_load() should be preferred.
      """
      return _get_yaml().load(f)
  
imports: import datetime
  import functools
  import io
  import json
  import os
  import pathlib
  import platform
  import random
  import re
  import sys
  import time
  import warnings
  from typing import IO, Any, Callable, Dict, Iterator, Optional, Sequence, Tuple, TypeVar, Union, cast, no_type_check, overload
  import urllib3
  from determined.common import yaml
label_desc: Use image node_id 13 for calling a global function with example usage: yaml_safe_load(f) and returns: _get_yaml