code: def testClusteringSampleSimple2LinkAverageByCore(self):
      AgglomerativeTestTemplates.templateClusteringResults(
          SIMPLE_SAMPLES.SAMPLE_SIMPLE2,
          3,
          type_link.AVERAGE_LINK,
          [5, 8, 10],
          True,
      )
      AgglomerativeTestTemplates.templateClusteringResults(
          SIMPLE_SAMPLES.SAMPLE_SIMPLE2,
          1,
          type_link.AVERAGE_LINK,
          [23],
          True,
      )
  
imports: import unittest
  import matplotlib
  from pyclustering.cluster.tests.agglomerative_templates import AgglomerativeTestTemplates
  from pyclustering.cluster.agglomerative import agglomerative, type_link
  from pyclustering.samples.definitions import SIMPLE_SAMPLES
  from pyclustering.core.tests import remove_library, corrupt_library
label_desc: Use image node_id 5 for calling the AgglomerativeIntegrationTest obj's underlying member method code with example usage: obj.testClusteringSampleSimple2LinkAverageByCore() without return types