code: def test_plot_reduce1d():
      # should return 1d data since ndims=1
      geo = plot.plot(data, ndims=1, show=False)
      assert all([i.shape[1] == 1 for i in geo.xform_data])
  
imports: import pytest
  import numpy
  import matplotlib
  import matplotlib.pyplot
  from hypertools.plot import plot
  from hypertools.tools.reduce import reduce
  from hypertools.tools.load import load
  from hypertools.datageometry import DataGeometry
label_desc: Use image node_id 7 for calling a global function with example usage: test_plot_reduce1d() without return types