code: def test_invalid_log_lims():
      # Check that invalid log scale limits are ignored
      fig, ax = plt.subplots()
      ax.scatter(range(0, 4), range(0, 4))
  
      ax.set_xscale("log")
      original_xlim = ax.get_xlim()
      with pytest.warns(UserWarning):
          ax.set_xlim(left=0)
      assert ax.get_xlim() == original_xlim
      with pytest.warns(UserWarning):
          ax.set_xlim(right=-1)
      assert ax.get_xlim() == original_xlim
  
      ax.set_yscale("log")
      original_ylim = ax.get_ylim()
      with pytest.warns(UserWarning):
          ax.set_ylim(bottom=0)
      assert ax.get_ylim() == original_ylim
      with pytest.warns(UserWarning):
          ax.set_ylim(top=-1)
      assert ax.get_ylim() == original_ylim
  
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 11 for calling a global function with example usage: test_invalid_log_lims() without return types