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: Adds an exported symbol represented by the given call.
docstr_tok: ["Adds","an","exported","symbol","represented","by","the","given","call","."]
code: def _add_exported_symbol(
      self, node: ast.Call, symbol_name: str
  ) -> None:
      """Adds an exported symbol represented by the given call."""
      if symbol_name.find(".") != -1:
          raise BadExportError(
              f"{self._current_file}:{node.lineno} export called with symbol"
              f" {symbol_name} not defined in current file: {ast.dump(node)}"
          )
      v2_apis = tuple(
          f"{self._api_name}.{self._literal_value(arg)}"
          for arg in node.args
      )
      v1_apis = v2_apis
      for kw in node.keywords:
          if kw.arg == "v1":
              v1_apis = tuple(
                  f"{self._api_name}.{v}"
                  for v in self._literal_value(kw.value)
              )
          elif kw.arg == "allow_multiple_exports":
              # no-op kept for backward comapatibility of `tf-keras` with TF 2.13
              pass
          else:
              raise BadExportError(
                  f"{self._current_file}:{node.lineno} export called"
                  f" with unknown argument {kw.arg}: {ast.dump(node)}"
              )
      self._exports.add_symbol(
          exported_api.ExportedSymbol.create(
              file_name=self._current_file,
              line_no=node.lineno,
              symbol_name=symbol_name,
              v2_apis=v2_apis,
              v1_apis=v1_apis,
          )
      )
  
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 20 for calling the Parser obj's underlying member method code with example usage: obj._add_exported_symbol(node, symbol_name) without return types