code: def test_compute_token_probabilities(sequence_type):
      inputs = sequence_type(
          [
              [0.1, 0.2, 0.7],
              [0.3, 0.4, 0.3],
              [0.6, 0.3, 0.2],
          ]
      )
  
      token_probabilities = feature_utils.compute_token_probabilities(
          inputs
      )
      assert np.allclose(token_probabilities, [0.7, 0.4, 0.6])
  
file_path: ludwig/tests/ludwig/features/test_feature_utils.py
imports: import numpy
  import pytest
  import torch
  from ludwig.features import feature_utils
label_desc: Use image node_id 3 for calling a global function with example usage: test_compute_token_probabilities(sequence_type) without return types