code: def test_coord_trans():
      double_trans = trans_new("double", np.square, np.sqrt)
      # Warns probably because of a bad value around the left
      # edge of the domain.
      with pytest.warns(RuntimeWarning):
          assert p + coord_trans(y=double_trans) == "coord_trans"
  
file_path: plotnine/tests/test_coords.py
imports: import numpy
  import pandas
  import pytest
  from mizani.transforms import trans_new
  from plotnine import aes, coord_fixed, coord_flip, coord_trans, geom_bar, geom_line, ggplot, xlim
label_desc: Use image node_id 3 for calling a global function with example usage: test_coord_trans() without return types