code: def test_wrong_bases():
      # x axis not transformed
      p = (
          ggplot(data, aes("x", "x"))
          + annotation_logticks(sides="b", size=0.75, base=10)
          + geom_point()
      )
  
      with pytest.warns(PlotnineWarning):
          p.draw_test()
  
      # x axis not transform, but ticks requested for a different base
      p = (
          ggplot(data, aes("x", "x"))
          + annotation_logticks(sides="b", size=0.75, base=10)
          + scale_x_continuous(trans=log_trans(8))
          + geom_point()
      )
  
      with pytest.warns(PlotnineWarning):
          p.draw_test()
  
      # x axis is discrete
      data2 = data.assign(
          discrete=pd.Categorical([str(a) for a in data["x"]])
      )
      p = (
          ggplot(data2, aes("discrete", "x"))
          + annotation_logticks(sides="b", size=0.75, base=None)
          + geom_point()
      )
  
      with pytest.warns(PlotnineWarning):
          p.draw_test()
  
      # y axis is discrete
      data2 = data.assign(
          discrete=pd.Categorical([str(a) for a in data["x"]])
      )
      p = (
          ggplot(data2, aes("x", "discrete"))
          + annotation_logticks(sides="l", size=0.75, base=None)
          + geom_point()
      )
  
      with pytest.warns(PlotnineWarning):
          p.draw_test()
  
      # x axis is discrete + coord flip.
      data2 = data.assign(
          discrete=pd.Categorical([str(a) for a in data["x"]])
      )
      p = (
          ggplot(data2, aes("discrete", "x"))
          + annotation_logticks(sides="b", size=0.75, base=None)
          + geom_point()
          + coord_flip()
      )
  
      with pytest.warns(PlotnineWarning):
          p.draw_test()
  
      # y axis is discrete + coord_flip
      data2 = data.assign(
          discrete=pd.Categorical([str(a) for a in data["x"]])
      )
      p = (
          ggplot(data2, aes("x", "discrete"))
          + annotation_logticks(sides="l", size=0.75, base=None)
          + geom_point()
          + coord_flip()
      )
  
      with pytest.warns(PlotnineWarning):
          p.draw_test()
  
file_path: plotnine/tests/test_annotation_logticks.py
imports: import numpy
  import pandas
  import pytest
  from mizani.transforms import label_log, log_trans
  from plotnine import aes, annotation_logticks, coord_flip, element_line, facet_wrap, geom_point, ggplot, scale_x_continuous, scale_x_log10, scale_y_log10, theme
  from plotnine.exceptions import PlotnineWarning
label_desc: Use image node_id 8 for calling a global function with example usage: test_wrong_bases() without return types