code: def test_preprocess_mmdata():
      with tempfile.TemporaryDirectory() as temp_dir:
          # gpt specific args
          gpt_args = [
              "--pad-length",
              "1024",
              "--tokenizer-type",
              "GPT2BPETokenizer",
              "--vocab-file",
              gpt2_vocab(temp_dir),
              "--merge-file",
              gpt2_merge(temp_dir),
              "--append-eod",
              "--workers",
              "10",
              "--log-interval",
              "1",
          ]
  
          do_test_preprocess_mmdata(temp_dir, extra_args=gpt_args)
  
file_path: megatron-lm/tests/unit_tests/data/test_preprocess_mmdata.py
imports: import os
  import random
  import sys
  import tempfile
  import nltk
  import numpy
  from megatron.core.datasets.indexed_dataset import MMapIndexedDataset
  from tests.unit_tests.data.test_preprocess_data import dummy_jsonl, gpt2_vocab, gpt2_merge
  from tools.merge_datasets import main
  from tools.preprocess_mmdata import Encoder
  from tools.preprocess_mmdata import get_args
  from tools.preprocess_mmdata import main
label_desc: Use image node_id 5 for calling a global function with example usage: test_preprocess_mmdata() without return types