code: def _add_epytext_field(obj, field, message):
      """Add an epytext @field to a given object's docstring."""
      indent = ""
      # If we already have a docstring, then add a blank line to separate
      # it from the new field, and check its indentation.
      if obj.__doc__:
          obj.__doc__ = obj.__doc__.rstrip() + "\n\n"
          indents = re.findall(
              r"(?<=\n)[ ]+(?!\s)", obj.__doc__.expandtabs()
          )
          if indents:
              indent = min(indents)
      # If we don't have a docstring, add an empty one.
      else:
          obj.__doc__ = ""
  
      obj.__doc__ += textwrap.fill(
          f"@{field}: {message}",
          initial_indent=indent,
          subsequent_indent=indent + "    ",
      )
  
imports: import fnmatch
  import locale
  import os
  import re
  import stat
  import subprocess
  import sys
  import textwrap
  import types
  import warnings
  from xml.etree import ElementTree
label_desc: Use image node_id 8 for calling a global function with example usage: _add_epytext_field(obj, field, message) without return types