code: def test_plot_masked_units():
      data = np.linspace(-5, 5)
      data_masked = np.ma.array(data, mask=(data > -2) & (data < 2))
      data_masked_units = Quantity(data_masked, "meters")
  
      fig, ax = plt.subplots()
      ax.plot(data_masked_units)
  
imports: from datetime import datetime, timezone, timedelta
  import platform
  from unittest.mock import MagicMock
  import matplotlib.pyplot
  from matplotlib.testing.decorators import check_figures_equal, image_comparison
  import matplotlib.units
  from matplotlib.category import UnitData
  import numpy
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_plot_masked_units() without return types