code: def _get_harmonic_list(degree_max):
      """Generate list of all spherical harmonics up to degree_max."""
      harmonic_list = []
      for degree in range(degree_max + 1):
          for order in range(-degree, degree + 1):
              harmonic_list.append((order, degree))
      return harmonic_list
  
imports: import cupy
  import pytest
  import cupyx.scipy.special
  from cupy import testing
  from cupy.testing import numpy_cupy_allclose
label_desc: Use image node_id 1 for calling a global function with example usage: _get_harmonic_list(degree_max) and returns: harmonic_list