code: def test_hierarchical_part_named_cols(self):
      enc = encoders.TargetEncoder(
          verbose=1,
          smoothing=2,
          min_samples_leaf=2,
          hierarchy=self.hierarchical_map,
          cols=["Compass"],
      )
      result = enc.fit_transform(
          self.hierarchical_cat_example,
          self.hierarchical_cat_example["target"],
      )
  
      values = result["Compass"].array
      self.assertAlmostEqual(0.6226, values[0], delta=1e-4)
      self.assertAlmostEqual(0.9038, values[2], delta=1e-4)
      self.assertAlmostEqual(0.1766, values[5], delta=1e-4)
      self.assertAlmostEqual(0.4605, values[7], delta=1e-4)
      self.assertAlmostEqual(0.4033, values[11], delta=1e-4)
  
      values = result["Speed"].array
      self.assertEqual("slow", values[0])
  
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 11 for calling the TestTargetEncoder obj's underlying member method code with example usage: obj.test_hierarchical_part_named_cols() without return types