class_docstr: A `tf_export`, `keras_export` and `estimator_export` aware doc_visitor.
class_docstr_tok: ["A","`","tf_export","`",",","`","keras_export","`","and","`","estimator_export","`","aware","doc_visitor","."]
code: def _score_name(
      self, path: doc_generator_visitor.ApiPath
  ) -> TfNameScore:
      name = ".".join(path)
      all_exports = [
          tf_export.TENSORFLOW_API_NAME,
          tf_export.KERAS_API_NAME,
          tf_export.ESTIMATOR_API_NAME,
      ]
  
      for api_name in all_exports:
          try:
              canonical = tf_export.get_canonical_name_for_symbol(
                  self._index[name], api_name=api_name
              )
          except AttributeError:
              canonical = None
          if canonical is not None:
              break
  
      canonical_score = 1
      if canonical is not None and name == "tf." + canonical:
          canonical_score = -1
  
      return self.TfNameScore(
          canonical_score, super()._score_name(path)
      )
  
imports: import contextlib
  import pathlib
  import textwrap
  from typing import NamedTuple
  from absl import app
  from absl import flags
  from packaging import version
  import tensorflow
  from tensorflow_docs.api_generator import doc_controls
  from tensorflow_docs.api_generator import doc_generator_visitor
  from tensorflow_docs.api_generator import generate_lib
  from tensorflow_docs.api_generator.pretty_docs import base_page
  from tensorflow_docs.api_generator.pretty_docs import module_page
  import yaml
  from tensorflow.python.framework import ops
  from tensorflow.python.util import tf_export
  from tensorflow.python.util import tf_inspect
  import base_dir
label_desc: Use image node_id 1 for calling the TfExportAwareVisitor obj's underlying member method code with example usage: obj._score_name(path) and returns: self