code: def test_single_mapping_gating(n_tokens: int, n_experts: int) -> None:
      """
      Evaluate our expert stacking behavior in complete isolation. This ensures all tokens
      mapped to the same expert are getting unique offsets and identical scores.
      """
      assigned_expert = 13
      _test_single_mapping_helper(n_tokens, n_experts, assigned_expert)
  
file_path: deepspeed/tests/unit/inference/v2/kernels/ragged_ops/test_top_k_gating.py
imports: import pytest
  import torch
  import torch.nn.functional
  from deepspeed.accelerator import get_accelerator
  from deepspeed.inference.v2.inference_utils import DtypeEnum
  from deepspeed.inference.v2.kernels.ragged_ops import RaggedTopKGating
  from .ragged_testing_utils import build_simple_batch
  from ...inference_test_utils import allclose
label_desc: Use image node_id 4 for calling a global function with example usage: test_single_mapping_gating(n_tokens, n_experts) without return types