code: def _process_deriv_spec(deriv):
      if deriv is not None:
          try:
              ords, vals = zip(*deriv)
          except TypeError as e:
              msg = (
                  "Derivatives, `bc_type`, should be specified as a pair of "
                  "iterables of pairs of (order, value)."
              )
              raise ValueError(msg) from e
      else:
          ords, vals = [], []
      return np.atleast_1d(ords, vals)
  
imports: import operator
  import numpy
  from numpy.core.multiarray import normalize_axis_index
  from scipy.linalg import get_lapack_funcs, LinAlgError, cholesky_banded, cho_solve_banded, solve, solve_banded
  from .None import _bspl
  from .None import _fitpack_impl
  from .None import _fitpack
  from scipy._lib._util import prod
label_desc: Use image node_id 6 for calling a global function with example usage: _process_deriv_spec(deriv) and returns: np