code: def convert_rgai(
      base_input_path,
      base_output_path,
      short_name,
      use_business,
      use_criminal,
  ):
      all_data_file = tempfile.NamedTemporaryFile(delete=False)
      try:
          raw_data = get_rgai_data(
              base_input_path, use_business, use_criminal
          )
          for line in raw_data:
              all_data_file.write(line.encode())
              all_data_file.write("\n".encode())
          all_data_file.close()
          split_wikiner(
              base_output_path, all_data_file.name, prefix=short_name
          )
      finally:
          os.unlink(all_data_file.name)
  
imports: import os
  import tempfile
  from stanza.utils.datasets.ner.split_wikiner import split_wikiner
label_desc: Use image node_id 3 for calling a global function with example usage: convert_rgai(base_input_path, base_output_path, short_name, use_business, use_criminal) without return types