code: def test_Errors(self) -> None:
      t = Derelativize(
          search_space=None,
          observations=[],
      )
      oc = OptimizationConfig(
          objective=Objective(Metric("c")),
          outcome_constraints=[
              OutcomeConstraint(
                  Metric("a"), ComparisonOp.LEQ, bound=2, relative=True
              )
          ],
      )
      search_space = SearchSpace(
          parameters=[RangeParameter("x", ParameterType.FLOAT, 0, 20)]
      )
      g = ModelBridge(search_space, None, [])
      with self.assertRaises(ValueError):
          t.transform_optimization_config(oc, None, None)
      with self.assertRaises(DataRequiredError):
          t.transform_optimization_config(oc, g, None)
  
imports: from copy import deepcopy
  from unittest import mock
  from unittest.mock import Mock, patch
  import numpy
  from ax.core.data import Data
  from ax.core.experiment import Experiment
  from ax.core.metric import Metric
  from ax.core.objective import Objective
  from ax.core.observation import Observation, ObservationData, ObservationFeatures
  from ax.core.optimization_config import OptimizationConfig
  from ax.core.outcome_constraint import OutcomeConstraint, ScalarizedOutcomeConstraint
  from ax.core.parameter import ParameterType, RangeParameter
  from ax.core.search_space import SearchSpace
  from ax.core.types import ComparisonOp
  from ax.exceptions.core import DataRequiredError
  from ax.modelbridge.base import ModelBridge
  from ax.modelbridge.transforms.derelativize import Derelativize
  from ax.utils.common.testutils import TestCase
label_desc: Use image node_id 3 for calling the DerelativizeTransformTest obj's underlying member method code with example usage: obj.test_Errors() without return types