code: def test_negative_logits():
      """
      Ensure that scores/values are propagated correctly when all the logits are negative. An
      earlier implementation of the scoring would return NaN for this case.
      """
      _test_single_mapping_helper(
          128, 32, 13, logit_fill=-2.0, match_fill=-1.0
      )
  
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 5 for calling a global function with example usage: test_negative_logits() without return types