class_docstr: Tests the 'plot_slopes' function for different combinations, elasticity,
  and effect types (unit and average slopes) of 'wrt' and 'conditional'
  variables.
class_docstr_tok: ["Tests","the","'plot_slopes","'","function","for","different","combinations",",","elasticity",",","and","effect","types","(","unit","and","average","slopes",")","of","'wrt","'","and","'conditional'","variables","."]
code: def test_with_user_values(self, mtcars, wrt, conditional, average_by):
      model, idata = mtcars
      # need to average by if greater than 1 value is passed with 'wrt'
      plot_slopes(model, idata, wrt, conditional, average_by=average_by)
  
imports: from os.path import dirname, join
  import numpy
  import pandas
  import matplotlib.pyplot
  import pytest
  import bambi
  from bambi.interpret import plot_comparisons, plot_predictions, plot_slopes
label_desc: Use image node_id 3 for calling the TestSlopes obj's underlying member method code with example usage: obj.test_with_user_values(mtcars, wrt, conditional, average_by) without return types