code: def _format_table(table: List[List[Union[str, int]]]) -> List[str]:
      longest_cols = [
          (max([len(str(row[i])) for row in table]) + 3)
          for i in range(len(table[0]))
      ]
      row_format = "".join(
          [
              "{:>" + str(longest_col) + "}"
              for longest_col in longest_cols
          ]
      )
      return [row_format.format(*row) for row in table]
  
imports: import logging
  from collections import defaultdict
  from typing import Any, cast, Dict, List, Optional, Tuple, Union
  from torch import nn
  from torchrec.distributed.planner.constants import BIGINT_DTYPE, NUM_POOLINGS
  from torchrec.distributed.planner.shard_estimators import _calculate_shard_io_sizes
  from torchrec.distributed.planner.storage_reservations import FixedPercentageStorageReservation, HeuristicalStorageReservation, InferenceStorageReservation
  from torchrec.distributed.planner.types import ParameterConstraints, Perf, ShardingOption, Stats, Storage, StorageReservation, Topology
  from torchrec.distributed.planner.utils import _find_imbalance_tables, bytes_to_gb, bytes_to_mb, sharder_name
  from torchrec.distributed.types import ModuleSharder, ParameterSharding, ShardingPlan, ShardingType
label_desc: Use image node_id 7 for calling a global function with example usage: _format_table(table) and returns: unknown