code: def _escape_func_str(func_str: str) -> str:
      """
      Escape function names to conform to RST format.
  
      Parameters
      ----------
      func_str : str
          Function name to escape.
  
      Returns
      -------
      str
          Escaped function name.
      """
      # TODO: Take into account that this function can create links incorrectly
      # We can create alias links or links to parent methods
      if func_str.endswith("_"):
          return func_str[:-1] + "\_"  # noqa: W605
      else:
          return func_str
  
imports: import warnings
  from enum import Enum, unique
  from inspect import getmembers, isclass, isfunction, signature
  from typing import Any, Callable, Dict, List, NamedTuple, Set, TextIO, Tuple
  import pyspark.pandas
  import pyspark.pandas.groupby
  import pyspark.pandas.window
  import pandas
  import pandas.core.groupby
  import pandas.core.window
  from pyspark.loose_version import LooseVersion
  from pyspark.pandas.exceptions import PandasNotImplementedError
label_desc: Use image node_id 10 for calling a global function with example usage: _escape_func_str(func_str) and returns: unknown, func_str