class_docstr: Generates a custom page for `tf.raw_ops`.
class_docstr_tok: ["Generates","a","custom","page","for","`","tf.raw_ops","`","."]
docstr: Generates docs for `tf.raw_ops`.
docstr_tok: ["Generates","docs","for","`","tf.raw_ops","`","."]
code: def generate_raw_ops_doc_lt_214(self):
      """Generates docs for `tf.raw_ops`."""
      del self
  
      warning = textwrap.dedent(
          """\n
        Note: `tf.raw_ops` provides direct/low level access to all TensorFlow ops.
        See [the RFC](https://github.com/tensorflow/community/blob/master/rfcs/20181225-tf-raw-ops.md)
        for details. Unless you are library writer, you likely do not need to use
        these ops directly."""
      )
  
      table_header = textwrap.dedent(
          """
  
          | Op Name | Has Gradient |
          |---------|:------------:|"""
      )
  
      parts = [warning, table_header]
  
      for op_name in sorted(dir(tf.raw_ops)):
          try:
              ops._gradient_registry.lookup(
                  op_name
              )  # pylint: disable=protected-access
              has_gradient = (
                  "\N{HEAVY CHECK MARK}\N{VARIATION SELECTOR-16}"
              )
          except LookupError:
              has_gradient = "\N{CROSS MARK}"
  
          if not op_name.startswith("_"):
              path = (
                  pathlib.Path("/")
                  / FLAGS.site_path
                  / "tf/raw_ops"
                  / op_name
              )
              path = path.with_suffix(".md")
              link = (
                  '<a id={op_name} href="{path}">{op_name}</a>'
              ).format(op_name=op_name, path=str(path))
              parts.append(
                  "| {link} | {has_gradient} |".format(
                      link=link, has_gradient=has_gradient
                  )
              )
  
      return "\n".join(parts)
  
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 2 for calling the RawOpsPageInfo obj's underlying member method code with example usage: obj.generate_raw_ops_doc_lt_214() and returns: str