code: def _convert_caption_string_to_int(
      features: Dict[str, Any]
  ) -> Dict[str, Any]:
      """Converts keys to sequence of ints."""
      if "key" in features:
          # Maximum output length
          features["raw_caption"] = _convert_strings_to_int_sequences(
              features["raw_caption"][:, 0], 512
          )
  
      return features
  
imports: import functools
  from typing import Any, Dict, Iterator, Optional, Sequence, Text, Tuple
  from absl import logging
  from dmvr import builders
  from dmvr import modalities
  from dmvr import tokenizers
  from flax import jax_utils
  import jax
  import jax.numpy
  import numpy
  from scenic.dataset_lib import dataset_utils
  from scenic.dataset_lib import datasets
  from scenic.dataset_lib import video_ops
  from scenic.projects.avatar.datasets.dataset_utils import add_int64
  from scenic.projects.avatar.datasets.dataset_utils import add_spectrogram
  from scenic.projects.avatar.datasets.dataset_utils import add_spectrogram_from_audio
  from scenic.projects.avatar.datasets.dataset_utils import add_text
  from scenic.projects.vivit.data import video_tfrecord_dataset
  import tensorflow
label_desc: Use image node_id 4 for calling a global function with example usage: _convert_caption_string_to_int(features) and returns: features