def METHOD_NAME(self):
    """
    Test GPU methods at CMSSW template level
    """
    workload = newWorkload("UnitTests")
    task = workload.newTask("CMSSWTemplate")
    stepHelper = task.makeStep("TemplateTest")
    step = stepHelper.data
    template = CMSSWTemplate()
    template(step)
    helper = template.helper(step)
    self.assertEqual(helper.getGPURequired(), "forbidden")
    self.assertIsNone(helper.getGPURequirements())
    helper.setGPUSettings("optional", "test 1 2 3")
    self.assertEqual(helper.getGPURequired(), "optional")
    self.assertItemsEqual(helper.getGPURequirements(), "test 1 2 3")
    helper.setGPUSettings("required", {"key1": "value1", "key2": "value2"})
    self.assertEqual(helper.getGPURequired(), "required")
    self.assertItemsEqual(helper.getGPURequirements(), {"key1": "value1", "key2": "value2"})