class_docstr: Parser for Python source files that extracts TF API exports.
class_docstr_tok: ["Parser","for","Python","source","files","that","extracts","TF","API","exports","."]
docstr: Extract docstring and list of modules that it should be applied to.
docstr_tok: ["Extract","docstring","and","list","of","modules","that","it","should","be","applied","to","."]
code: def _extract_docstring(self, value: str) -> tuple[str, Sequence[str]]:
      """Extract docstring and list of modules that it should be applied to."""
      docstring = ""
      modules = []
      for line in value.splitlines():
          match = _DOCSTRING_PATTERN.match(line)
          if match:
              module = match.group(1).strip()
              # API docstring: <module>
              if module == self._api_name or module.startswith(
                  self._api_name + "."
              ):
                  modules.append(module)
          else:
              docstring += line + "\n"
      return (docstring.strip(), modules)
  
imports: import ast
  from collections.abc import Sequence
  import re
  from typing import Any, Optional, Union, cast
  from absl import flags
  from absl import logging
  from tensorflow.python.tools.api.generator2.shared import exported_api
label_desc: Use image node_id 13 for calling the Parser obj's underlying member method code with example usage: obj._extract_docstring(value) and returns: docstring,  modules