code: def test_count_plots(self):
      df = self.iris
  
      ax = df.sns.countplot()
      self.assertIsInstance(ax, matplotlib.axes.Axes)
      self.assertEqual(ax.get_xlabel(), ".target")
      self.assertEqual(ax.get_ylabel(), "count")
      tm.close()
  
      return  # ToDo: only fails on Travis
  
      ax = df.sns.countplot(df.columns[1])
      self.assertIsInstance(ax, matplotlib.axes.Axes)
      self.assertEqual(ax.get_xlabel(), df.columns[1])
      self.assertEqual(ax.get_ylabel(), "count")
      tm.close()
  
      ax = df.sns.countplot(x=df.columns[1])
      self.assertIsInstance(ax, matplotlib.axes.Axes)
      self.assertEqual(ax.get_xlabel(), df.columns[1])
      self.assertEqual(ax.get_ylabel(), "count")
      tm.close()
  
      ax = df.sns.countplot(y=df.columns[1])
      self.assertIsInstance(ax, matplotlib.axes.Axes)
      self.assertEqual(ax.get_xlabel(), "count")
      self.assertEqual(ax.get_ylabel(), df.columns[1])
      tm.close()
  
      with tm.assertRaises(TypeError):
          # can't pass both x and y
          df.sns.countplot(x=df.columns[1], y=df.columns[2])
  
imports: import pytest
  import matplotlib
  import numpy
  import sklearn.datasets
  import pandas_ml
  import pandas_ml.util.testing
label_desc: Use image node_id 4 for calling the TestSeabornCategorical obj's underlying member method code with example usage: obj.test_count_plots() without return types