code: def _np_doc_helper(
      f, np_f, np_fun_name=None, unsupported_params=None, link=None
  ):
      """Helper to get docs."""
      assert np_f or np_fun_name
      if not np_fun_name:
          np_fun_name = np_f.__name__
      doc = "TensorFlow variant of NumPy's `%s`.\n\n" % np_fun_name
      if unsupported_params:
          doc += (
              "Unsupported arguments: "
              + ", ".join(
                  "`" + name + "`" for name in unsupported_params
              )
              + ".\n\n"
          )
      if _has_docstring(f):
          doc += f.__doc__
          doc = _add_blank_line(doc)
      # TODO(wangpeng): Re-enable the following and choose inlined vs. link to numpy
      #   doc according to some global switch.
      doc = _add_np_doc(doc, np_fun_name, np_f, link=link)
      return doc
  
imports: import inspect
  import numbers
  import os
  import re
  import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import flexible_dtypes
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.numpy_ops import np_arrays
  from tensorflow.python.ops.numpy_ops import np_dtypes
  from tensorflow.python.types import core
  from tensorflow.python.util import nest
  from tensorflow.python.util import tf_export
label_desc: Use image node_id 12 for calling a global function with example usage: _np_doc_helper(f, np_f, np_fun_name, unsupported_params, link) and returns: doc