code: def calculate_sequence_score(
      inputs, transition_params, tag_indices, sequence_lengths
  ):
      expected_unary_score = sum(
          inputs[i][tag_indices[i]] for i in range(sequence_lengths)
      )
      expected_binary_score = sum(
          transition_params[tag_indices[i], tag_indices[i + 1]]
          for i in range(sequence_lengths - 1)
      )
      return expected_unary_score + expected_binary_score
  
imports: import itertools
  from packaging.version import Version
  import pytest
  import numpy
  import tensorflow
  from tensorflow_addons import text
  from tensorflow_addons.utils import test_utils
  from numpy.testing import assert_array_equal
label_desc: Use image node_id 1 for calling a global function with example usage: calculate_sequence_score(inputs, transition_params, tag_indices, sequence_lengths) and returns: unknown