code: def fix_ndarray_signature(
      app, what, name, obj, options, signature, return_annotation
  ):
      # Replace `_ndarray_base` with `ndarray` for signatures and return types
      # on docs.
      if signature is not None:
          signature = signature.replace("_ndarray_base", "ndarray")
      if return_annotation == "_ndarray_base":
          return_annotation = "ndarray"
      return (signature, return_annotation)
  
file_path: cupy/docs/source/conf.py
imports: import importlib
  import inspect
  import os
  import sys
  import sphinx
  import cupy
  import _comparison_generator
label_desc: Use image node_id 8 for calling a global function with example usage: fix_ndarray_signature(app, what, name, obj, options, signature, return_annotation) and returns: signature,  return_annotation