code: def test_hierarchy_mapping_no_cols(self):
      hierarchical_map = {
          "Compass": {"N": ("N", "NE"), "S": ("S", "SE"), "W": "W"}
      }
      with self.assertRaises(ValueError):
          encoders.TargetEncoder(
              verbose=1,
              smoothing=2,
              min_samples_leaf=2,
              hierarchy=hierarchical_map,
          )
  
imports: import pandas
  from unittest import TestCase
  import tests.helpers
  import numpy
  from category_encoders.datasets import load_postcodes, load_compass
  import category_encoders
label_desc: Use image node_id 21 for calling the TestTargetEncoder obj's underlying member method code with example usage: obj.test_hierarchy_mapping_no_cols() without return types