code: def _prepare_code_snippets(
      code: str, start_line: int = 1, **kwargs: Any
  ) -> "Syntax":
      from rich.syntax import Syntax
  
      kwargs.setdefault("start_line", start_line)
      return Syntax(
          code,
          "yaml",
          theme="ansi_dark",
          word_wrap=True,
          line_numbers=True,
          indent_guides=True,
          **kwargs,
      )
  
imports: import re
  import typing
  from contextlib import suppress
  from typing import TYPE_CHECKING, Any, Callable, List, Optional, Tuple, TypeVar
  from dvc.exceptions import PrettyDvcException
  from dvc.ui import ui
  from dvc.utils.serialize import EncodingError, YAMLFileCorruptedError, parse_yaml, parse_yaml_for_update
label_desc: Use image node_id 4 for calling a global function with example usage: _prepare_code_snippets(code, start_line) and returns: Syntax