def METHOD_NAME(self):
    """
    Test similar to C++ CPU test.
    """
    bake = OCIO.Baker()
    cfg = OCIO.Config().CreateFromStream(self.SIMPLE_PROFILE)
    cs = cfg.getColorSpaces()
    self.assertEqual(len(cs), 2)
    bake.setConfig(cfg)
    cfg2 = bake.getConfig()
    cs2 = cfg2.getColorSpaces()
    self.assertEqual(len(cs2), 2)
    # Using target space.
    bake.setFormat("cinespace")
    self.assertEqual("cinespace", bake.getFormat())
    bake.setInputSpace("lnh")
    self.assertEqual("lnh", bake.getInputSpace())
    bake.setLooks("foo, +bar")
    self.assertEqual("foo, +bar", bake.getLooks())
    bake.setLooks("")
    bake.setTargetSpace("test")
    self.assertEqual("test", bake.getTargetSpace())
    bake.setShaperSize(4)
    self.assertEqual(4, bake.getShaperSize())
    bake.setCubeSize(2)
    self.assertEqual(2, bake.getCubeSize())
    output = bake.bake()
    self.assert_lut_match(output, self.EXPECTED_LUT)
    # Using display / view.
    bake = OCIO.Baker()
    bake.setConfig(cfg)
    bake.setFormat("cinespace")
    self.assertEqual("cinespace", bake.getFormat())
    bake.setInputSpace("lnh")
    self.assertEqual("lnh", bake.getInputSpace())
    bake.setDisplayView("TestDisplay", "TestView")
    self.assertEqual("TestDisplay", bake.getDisplay())
    self.assertEqual("TestView", bake.getView())
    bake.setShaperSize(4)
    self.assertEqual(4, bake.getShaperSize())
    bake.setCubeSize(2)
    self.assertEqual(2, bake.getCubeSize())
    output = bake.bake()
    self.assert_lut_match(output, self.EXPECTED_LUT)
    fmts = bake.getFormats()
    self.assertEqual(len(fmts), 12)
    self.assertEqual("cinespace", fmts[4][0])
    self.assertEqual("3dl", fmts[1][1])