code: def test_manual_seed(self):
      initial_state = torch.random.get_rng_state()
      with manual_seed():
          self.assertTrue(
              torch.all(torch.random.get_rng_state() == initial_state)
          )
      with manual_seed(1234):
          self.assertFalse(
              torch.all(torch.random.get_rng_state() == initial_state)
          )
      self.assertTrue(
          torch.all(torch.random.get_rng_state() == initial_state)
      )
  
imports: from __future__ import annotations
  import itertools
  import warnings
  from typing import Any, Dict, Type
  from unittest import mock
  import numpy
  import torch
  from botorch.exceptions.errors import BotorchError
  from botorch.models.gp_regression import SingleTaskGP
  from botorch.sampling.pathwise import draw_matheron_paths
  from botorch.utils.sampling import _convert_bounds_to_inequality_constraints, batched_multinomial, DelaunayPolytopeSampler, draw_sobol_samples, find_interior_point, get_polytope_samples, HitAndRunPolytopeSampler, manual_seed, normalize_linear_constraints, optimize_posterior_samples, PolytopeSampler, sample_hypersphere, sample_simplex, sparse_to_dense_constraints
  from botorch.utils.testing import BotorchTestCase
label_desc: Use image node_id 1 for calling the TestManualSeed obj's underlying member method code with example usage: obj.test_manual_seed() without return types