code: def test_get_centroid(self):
      from affinegap import normalizedAffineGapDistance as comparator
  
      attributeList = [
          "mary crane center",
          "mary crane center north",
          "mary crane league - mary crane - west",
          "mary crane league mary crane center (east)",
          "mary crane league mary crane center (north)",
          "mary crane league mary crane center (west)",
          "mary crane league - mary crane - east",
          "mary crane family and day care center",
          "mary crane west",
          "mary crane center east",
          "mary crane league mary crane center (east)",
          "mary crane league mary crane center (north)",
          "mary crane league mary crane center (west)",
          "mary crane league",
          "mary crane",
          "mary crane east 0-3",
          "mary crane north",
          "mary crane north 0-3",
          "mary crane league - mary crane - west",
          "mary crane league - mary crane - north",
          "mary crane league - mary crane - east",
          "mary crane league - mary crane - west",
          "mary crane league - mary crane - north",
          "mary crane league - mary crane - east",
      ]
  
      centroid = dedupe.canonical.getCentroid(attributeList, comparator)
      assert centroid == "mary crane"
  
imports: import unittest
  import dedupe.canonical
label_desc: Use image node_id 1 for calling the CanonicalizationTest obj's underlying member method code with example usage: obj.test_get_centroid() without return types