code: def successive_params(par1, par2):
      """Return a list of parameter configurations, successively walking from
      par1 to par2 coordinate-wise."""
      par1_flat = np.fromiter(_flatten(par1), dtype=float)
      par2_flat = np.fromiter(_flatten(par2), dtype=float)
      walking_param = []
      for i in range(len(par1_flat) + 1):
          walking_param.append(
              unflatten(np.append(par2_flat[:i], par1_flat[i:]), par1)
          )
      return walking_param
  
imports: import functools
  import pytest
  from scipy.optimize import shgo
  import pennylane
  from pennylane import numpy
  from pennylane.utils import _flatten, unflatten
  from pennylane.optimize import RotosolveOptimizer
label_desc: Use image node_id 2 for calling a global function with example usage: successive_params(par1, par2) and returns: walking_param