code: def _get_table_names_by_groups(
      embedding_tables: List[ShardedEmbeddingTable],
  ) -> List[List[str]]:
      # since we don't have access to _group_tables_per_rank
      tables_per_rank: List[List[ShardedEmbeddingTable]] = [
          embedding_tables
      ]
  
      # taking only the list for the first rank
      table_groups: List[GroupedEmbeddingConfig] = group_tables(
          tables_per_rank
      )[0]
      return [table_group.table_names() for table_group in table_groups]
  
imports: import random
  import unittest
  from typing import Any, Dict, List
  from unittest.mock import MagicMock
  import hypothesis.strategies
  from hypothesis import given, settings
  from torchrec.distributed.embedding_lookup import EmbeddingComputeKernel
  from torchrec.distributed.embedding_sharding import _get_compute_kernel_type, _get_grouping_fused_params, _get_weighted_avg_cache_load_factor, group_tables
  from torchrec.distributed.embedding_types import GroupedEmbeddingConfig, ShardedEmbeddingTable
  from torchrec.modules.embedding_configs import DataType, PoolingType
label_desc: Use image node_id 1 for calling a global function with example usage: _get_table_names_by_groups(embedding_tables) and returns: unknown