def METHOD_NAME():
  # -- Configure the argument parser
  parser = argparse.ArgumentParser(formatter_class=RawDescriptionHelpFormatter, description='description:\n  Unit test wrapper for the adding AIE Partitions')
  parser.add_argument('--resource-dir', nargs='?', default=".", help='directory containing data to be used by this unit test')
  args = parser.parse_args()
  # Validate that the resource directory is valid
  if not os.path.exists(args.resource_dir):
      raise Exception("Error: The resource-dir '" + args.resource_dir +"' does not exist")
  if not os.path.isdir(args.resource_dir):
      raise Exception("Error: The resource-dir '" + args.resource_dir +"' is not a directory")
  # Prepare for testing
  xclbinutil = "xclbinutil"
  # Start the tests
  print ("Starting test")
  # ---------------------------------------------------------------------------
  step = "1) Add the AIE parition to the xclbin image"
  sectionname = "Flavor"
  workingXclbin = "aiePartition.xclbin"
  aiePartitionOutput1 = "aie_partition_output1.json"
  aiePartition = os.path.join(args.resource_dir, "aie_partition.json")
  aiePartitionOutputExpected = os.path.join(args.resource_dir, "aie_partition_expected.json")
  cmd = [xclbinutil, "--add-section", "AIE_PARTITION["+sectionname+"]:JSON:" + aiePartition,
                     "--dump-section", "AIE_PARTITION["+sectionname+"]:JSON:" + aiePartitionOutput1,
                     "--output", workingXclbin,
                     "--force",
                     "--trace"
                     ]
  execCmd(step, cmd)
  jsonFileCompare(aiePartitionOutputExpected, aiePartitionOutput1)
  # ---------------------------------------------------------------------------
  step = "2) Read and dump the AIE parition"
  aiePartitionOutput2 = "aie_partition_output2.json"
  cmd = [xclbinutil, "--input", workingXclbin,
                     "--dump-section", "AIE_PARTITION["+sectionname+"]:JSON:" + aiePartitionOutput2,
                     "--force",
                     "--trace"
                     ]
  execCmd(step, cmd)
  jsonFileCompare(aiePartitionOutputExpected, aiePartitionOutput2)
  # 1a) Check for the existance of the dummy PDI images
  aiePartition1111PDIExpected = os.path.join(args.resource_dir, "1111.txt")
  aiePartition1111PDIOutput = "00000000-0000-0000-0000-000000001111.pdi"
  textFileCompare(aiePartition1111PDIExpected, aiePartition1111PDIOutput)
  # 1b) Check for the existance of the dummy PDI images
  aiePartition2222PDIExpected = os.path.join(args.resource_dir, "2222.txt")
  aiePartition2222PDIOutput = "00000000-0000-0000-0000-000000002222.pdi"
  textFileCompare(aiePartition2222PDIExpected, aiePartition2222PDIOutput)
  # ---------------------------------------------------------------------------
  # If the code gets this far, all is good.
  return False