code: def vecnorm(x, ord=2):
      if ord == Inf:
          return np.amax(np.abs(x))
      elif ord == -Inf:
          return np.amin(np.abs(x))
      else:
          return np.sum(np.abs(x) ** ord, axis=0) ** (1.0 / ord)
  
imports: import warnings
  import sys
  from numpy import atleast_1d, eye, argmin, zeros, shape, squeeze, asarray, sqrt, Inf, asfarray, isinf
  import numpy
  from .linesearch import line_search_wolfe1, line_search_wolfe2, line_search_wolfe2, LineSearchWarning
  from ._numdiff import approx_derivative
  from scipy._lib._util import getfullargspec_no_self
  from scipy._lib._util import MapWrapper
  from scipy.optimize._differentiable_functions import ScalarFunction, FD_METHODS
label_desc: Use image node_id 3 for calling a global function with example usage: vecnorm(x, ord) and returns: np, np, unknown