def METHOD_NAME(self):
    # Test FormatMetadata related functions.
    cfg = OCIO.Config.CreateRaw()
    test_file = os.path.join(TEST_DATAFILES_DIR, 'clf', 'xyz_to_rgb.clf')
    file_tr = OCIO.FileTransform(src=test_file)
    proc = cfg.getProcessor(file_tr)
    # Remove the no-ops, since they are useless here.
    proc = proc.getOptimizedProcessor(OCIO.OPTIMIZATION_NONE)
    # For CTF, ProcessList metadata is added to processor FormatMetadata.
    proc_fmd = proc.getFormatMetadata()
    self.assertEqual(proc_fmd.getID(), '1d399a07-1936-49b8-9225-e6824790358c')
    proc_fmd_children = proc_fmd.getChildElements()
    self.assertEqual(len(proc_fmd_children), 1)
    child = next(proc_fmd_children)
    self.assertEqual(child.getElementName(), 'Description')
    self.assertEqual(child.getElementValue(),
                     'Example with a Matrix and Lut1D')
    # Each transform in the CTF file has a FormatMetadata. There are 3 transforms in this file.
    proc_tfmd = proc.getTransformFormatMetadata()
    self.assertEqual(len(proc_tfmd), 3)
    tfmd = next(proc_tfmd)
    self.assertEqual(tfmd.getID(), '72f85641-8c80-4bd6-b96b-a2f67ccb948a')
    tfmd_children = tfmd.getChildElements()
    self.assertEqual(len(tfmd_children), 1)
    child = next(tfmd_children)
    self.assertEqual(child.getElementName(), 'Description')
    self.assertEqual(child.getElementValue(),
                     'XYZ to sRGB matrix')
    tfmd = next(proc_tfmd)
    tfmd = next(proc_tfmd)
    self.assertEqual(tfmd.getID(), '4ed2af07-9319-430a-b18a-43368163c808')
    tfmd_children = tfmd.getChildElements()
    self.assertEqual(len(tfmd_children), 1)
    child = next(tfmd_children)
    self.assertEqual(child.getElementName(), 'Description')
    self.assertEqual(child.getElementValue(),
                     'x^1/1.8, with 0.95 and 0.9 scaling for G and B')