def METHOD_NAME(self):
    self.assertEqual(scope.CurrentDeviceScope(), None)
    dsc = core.DeviceOption(workspace.GpuDeviceType, 9)
    with scope.DeviceScope(dsc):
        self.assertEqual(scope.CurrentDeviceScope(), dsc)
    self.assertEqual(scope.CurrentDeviceScope(), None)