code: def test_expand(self):
      trunc = next(iter(self.distributions))
      other = trunc.expand(torch.Size([2]))
      for key in (
          "loc",
          "covariance_matrix",
          "bounds",
          "log_partition",
      ):
          a = getattr(trunc, key)
          self.assertTrue(
              all(a.allclose(b) for b in getattr(other, key).unbind())
          )
  
file_path: botorch/test/utils/probability/test_truncated_multivariate_normal.py
imports: from __future__ import annotations
  from itertools import count
  from typing import Sequence, Tuple
  import torch
  from botorch.utils.probability.mvnxpb import MVNXPB
  from botorch.utils.probability.truncated_multivariate_normal import TruncatedMultivariateNormal
  from botorch.utils.testing import BotorchTestCase
  from torch import Tensor
  from torch.distributions import MultivariateNormal
  from torch.special import ndtri
label_desc: Use image node_id 6 for calling the TestTruncatedMultivariateNormal obj's underlying member method code with example usage: obj.test_expand() without return types