code: def test_required_data_names(inference):
      retval = ASRTransducerTask.required_data_names(True, inference)
  
      if inference:
          assert retval == ("speech",)
      else:
          assert retval == ("speech", "text")
  
file_path: espnet/test/espnet2/tasks/test_asr_transducer.py
imports: from argparse import Namespace
  import pytest
  from espnet2.tasks.asr_transducer import ASRTransducerTask
label_desc: Use image node_id 11 for calling a global function with example usage: test_required_data_names(inference) without return types