code: def complex_ramp(
      size=512, phase_range=(-np.pi, np.pi), mag_range=(0, 10)
  ):
      """Returns a complex array where X ramps phase and Y ramps magnitude."""
      p0, p1 = phase_range
      phase_ramp = np.linspace(p0, p1 - 1 / size, size)
      m0, m1 = mag_range
      mag_ramp = np.linspace(m1, m0 + 1 / size, size)
      phase_ramp, mag_ramp = np.meshgrid(phase_ramp, mag_ramp)
      return (mag_ramp * np.exp(1j * phase_ramp)).astype(np.complex64)
  
imports: import sys
  import numpy
  from vispy import app, scene
label_desc: Use image node_id 1 for calling a global function with example usage: complex_ramp(size, phase_range, mag_range) and returns: unknown