code: def parse_numpy_printoption(kv_str):
      """Sets a single numpy printoption from a string of the form 'x=y'.
  
      See documentation on numpy.set_printoptions() for details about what values
      x and y can take. x can be any option listed there other than 'formatter'.
  
      Args:
        kv_str: A string of the form 'x=y', such as 'threshold=100000'
  
      Raises:
        argparse.ArgumentTypeError: If the string couldn't be used to set any
            nump printoption.
      """
      k_v_str = kv_str.split("=", 1)
      if len(k_v_str) != 2 or not k_v_str[0]:
          raise argparse.ArgumentTypeError(
              "'%s' is not in the form k=v." % kv_str
          )
      k, v_str = k_v_str
      printoptions = np.get_printoptions()
      if k not in printoptions:
          raise argparse.ArgumentTypeError(
              "'%s' is not a valid printoption." % k
          )
      v_type = type(printoptions[k])
      if v_type is type(None):
          raise argparse.ArgumentTypeError(
              "Setting '%s' from the command line is not supported." % k
          )
      try:
          v = (
              v_type(v_str)
              if v_type is not bool
              else flags.BooleanParser().parse(v_str)
          )
      except ValueError as e:
          raise argparse.ArgumentTypeError(e.message)
      np.set_printoptions(**{k: v})
  
file_path: tensorflow-upstream/tensorflow/python/tools/inspect_checkpoint.py
imports: import argparse
  import re
  import sys
  from absl import app
  import numpy
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.platform import flags
  from tensorflow.python.training import py_checkpoint_reader
label_desc: Use image node_id 3 for calling a global function with example usage: parse_numpy_printoption(kv_str) without return types