code: def test_count_seq_len(
      sample, count_type, replace_tokens, expected_seq_len
  ):
      assert (
          utils.count_seq_len(sample, count_type, replace_tokens)
          == expected_seq_len
      )
  
imports: import gzip
  import math
  import os
  import re
  from tempfile import TemporaryDirectory
  import unittest
  import numpy
  import pytest
  import torch
  from sockeye import __version__
  from sockeye import constants
  from sockeye import utils
label_desc: Use image node_id 22 for calling a global function with example usage: test_count_seq_len(sample, count_type, replace_tokens, expected_seq_len) without return types