code: def setUp(self) -> None:
      torch.use_deterministic_algorithms(True)
      if torch.cuda.is_available():
          torch.backends.cudnn.allow_tf32 = False
          torch.backends.cuda.matmul.allow_tf32 = False
          os.environ["CUBLAS_WORKSPACE_CONFIG"] = ":4096:8"
  
imports: import os
  import unittest
  from collections import defaultdict
  from typing import Any, Callable, cast, Dict, List, Optional, OrderedDict, Tuple
  import numpy
  import torch
  import torch.nn
  from fbgemm_gpu.split_embedding_configs import EmbOptimType
  from hypothesis import given, settings, strategies, Verbosity
  from torch import distributed
  from torch.distributed._shard.sharded_tensor import ShardedTensor
  from torchrec import distributed
  from torchrec.distributed.embedding_types import EmbeddingComputeKernel, EmbeddingTableConfig
  from torchrec.distributed.embeddingbag import EmbeddingBagCollectionSharder, ShardedEmbeddingBagCollection
  from torchrec.distributed.fused_embeddingbag import ShardedFusedEmbeddingBagCollection
  from torchrec.distributed.model_parallel import DistributedModelParallel
  from torchrec.distributed.planner import EmbeddingShardingPlanner, ParameterConstraints, Topology
  from torchrec.distributed.sharding_plan import get_default_sharders
  from torchrec.distributed.test_utils.test_model import _get_default_rtol_and_atol, ModelInput, TestSparseNN, TestSparseNNBase
  from torchrec.distributed.test_utils.test_sharding import copy_state_dict, create_test_sharder, gen_model_and_input, ModelInputCallable, SharderType
  from torchrec.distributed.types import ModuleSharder, ShardingEnv, ShardingPlan, ShardingType
  from torchrec.modules.embedding_configs import BaseEmbeddingConfig, EmbeddingBagConfig, PoolingType
  from torchrec.modules.embedding_modules import EmbeddingBagCollection
  from torchrec.modules.fused_embedding_modules import FusedEmbeddingBagCollection
  from torchrec.test_utils import get_free_port, seed_and_log
label_desc: Use image node_id 1 for calling the InferenceModelParallelTestBase obj's underlying member method code with example usage: obj.setUp() without return types