code: def test_target_encoders(self):
      # See issue #206
      for encoder_name in encoders.__all__:
          enc = getattr(encoders, encoder_name)()
          if not enc._get_tags().get("supervised_encoder"):
              continue
          with self.subTest(encoder_name=encoder_name):
              enc = getattr(encoders, encoder_name)(return_df=False)
              # an attempt to fit_transform() a supervised encoder without the target should result into a meaningful error message
              self.assertRaises(TypeError, enc.fit_transform, X)
  
imports: import warnings
  from datetime import timedelta
  import numpy
  from numpy.testing import assert_array_equal
  import pandas
  import sklearn
  import tests.helpers
  from sklearn.utils.estimator_checks import check_transformer_general, check_transformers_unfitted, check_n_features_in
  from sklearn.compose import ColumnTransformer
  from unittest import TestCase
  from copy import deepcopy
  import category_encoders
label_desc: Use image node_id 37 for calling the TestEncoders obj's underlying member method code with example usage: obj.test_target_encoders() without return types