class_docstr: Visitor to use with `traverse` to visit exactly the public TF API.
docstr: Return whether a name is private.
code: def _is_private(self, path, name, obj=None):
      """Return whether a name is private."""
      # TODO(wicke): Find out what names to exclude.
      del obj  # Unused.
      return (
          path in self._private_map and name in self._private_map[path]
      ) or (
          name.startswith("_")
          and not re.match("__.*__$", name)
          or name in ["__base__", "__class__", "__next_in_mro__"]
      )
  
file_path: tensorflow-upstream/tensorflow/tools/common/public_api.py
imports: import re
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 5 for calling the PublicAPIVisitor obj's underlying member method code with example usage: obj._is_private(path, name, obj) and returns: unknown