code: def _append_table_shard(
      d: Dict[str, List[Shard]], table_name: str, shard: Shard
  ) -> None:
      if table_name not in d:
          d[table_name] = []
      d[table_name].append(shard)
  
imports: import copy
  from dataclasses import dataclass
  from typing import Any, Dict, List, Mapping, Optional, TypeVar, Union
  import torch
  from fbgemm_gpu.split_table_batched_embeddings_ops_inference import IntNBitTableBatchedEmbeddingBagsCodegen
  from torch.distributed import _remote_device
  from torch.distributed._shard.sharded_tensor import Shard, ShardedTensorBase, ShardedTensorMetadata, ShardMetadata
  from torchrec.distributed.embedding_sharding import EmbeddingShardingInfo
  from torchrec.distributed.embedding_types import GroupedEmbeddingConfig, ShardedEmbeddingModule
  from torchrec.distributed.types import ParameterSharding, ShardingType
  from torchrec.modules.embedding_configs import DataType
  from torchrec.streamable import Multistreamable
  from torchrec.tensor_types import UInt2Tensor, UInt4Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: _append_table_shard(d, table_name, shard) without return types