code: def get_args(argspec, n):
      if isinstance(argspec, np.ndarray):
          args = argspec.copy()
      else:
          nargs = len(argspec)
          ms = np.asarray(
              [
                  1.5 if isinstance(spec, ComplexArg) else 1.0
                  for spec in argspec
              ]
          )
          ms = (n ** (ms / sum(ms))).astype(int) + 1
  
          args = [spec.values(m) for spec, m in zip(argspec, ms)]
          args = (
              np.array(np.broadcast_arrays(*np.ix_(*args)))
              .reshape(nargs, -1)
              .T
          )
  
      return args
  
imports: import os
  import sys
  import time
  import numpy
  from numpy.testing import assert_
  import pytest
  from scipy.special._testutils import assert_func_equal
label_desc: Use image node_id 1 for calling a global function with example usage: get_args(argspec, n) and returns: args