code: def test_logscale_mask():
      # Check that zero values are masked correctly on log scales.
      # See github issue 8045
      xs = np.linspace(0, 50, 1001)
  
      fig, ax = plt.subplots()
      ax.plot(np.exp(-(xs**2)))
      fig.canvas.draw()
      ax.set(yscale="log")
  
imports: import copy
  import matplotlib.pyplot
  from matplotlib.scale import AsinhScale, AsinhTransform, LogTransform, InvertedLogTransform, SymmetricalLogTransform
  import matplotlib.scale
  from matplotlib.ticker import AsinhLocator, LogFormatterSciNotation
  from matplotlib.testing.decorators import check_figures_equal, image_comparison
  import numpy
  from numpy.testing import assert_allclose
  import io
  import pytest
label_desc: Use image node_id 6 for calling a global function with example usage: test_logscale_mask() without return types