code: def _expand_params_for_interact(params):
      """
      Expand parameter values for interactive usage.
  
      Parameters
      ----------
      params : dict
          Dictionary containing parameter names and their corresponding values.
  
      Returns
      -------
      dict
          Dictionary with expanded parameter values, ensuring each value is a list of length 2.
      """
      for name, value in params.items():
          if not isinstance(value, list):
              params[name] = _expand_values(name, value, 2)
          else:
              assert len(value) == 2, f"{name}: length should be 2."
  
      return params
  
imports: import numpy
  import pandas
  import psutil
label_desc: Use image node_id 16 for calling a global function with example usage: _expand_params_for_interact(params) and returns: params