class_docstr: self = TestOptimize()
  self.setUp()
code: def setUp(self):
      self.A = torch.randn(
          5,
          5,
          device=config.DEVICE,
          dtype=config.DTYPE,
          requires_grad=True,
      )
      self.B = torch.ones(
          5,
          5,
          device=config.DEVICE,
          dtype=config.DTYPE,
          requires_grad=False,
      )
  
file_path: pgmpy/pgmpy/tests/test_utils/test_optimizer.py
imports: import unittest
  import numpy
  import numpy.testing
  import torch
  from pgmpy import config
  from pgmpy.utils import optimize, pinverse
label_desc: Use image node_id 1 for calling the TestOptimize obj's underlying member method code with example usage: obj.setUp() without return types