code: def test_ConvertEqualityConstraints(self) -> None:
      fixed_features = {3: 0.7, 1: 0.5}
      d = 4
      C, c = not_none(
          self.random_model._convert_equality_constraints(
              d, fixed_features
          )
      )
      c_expected = torch.tensor([[0.5], [0.7]], dtype=torch.double)
      C_expected = torch.tensor(
          [[0, 1, 0, 0], [0, 0, 0, 1]], dtype=torch.double
      )
      c_comparison = c == c_expected
      C_comparison = C == C_expected
      self.assertEqual(c_comparison.any(), True)
      self.assertEqual(C_comparison.any(), True)
      self.assertEqual(
          self.random_model._convert_equality_constraints(d, None), None
      )
  
file_path: Ax/ax/models/tests/test_random.py
imports: import numpy
  import torch
  from ax.models.random.base import RandomModel
  from ax.utils.common.testutils import TestCase
  from ax.utils.common.typeutils import not_none
label_desc: Use image node_id 5 for calling the RandomModelTest obj's underlying member method code with example usage: obj.test_ConvertEqualityConstraints() without return types