code: def get_rgai_data(base_input_path, use_business, use_criminal):
      assert (
          use_business or use_criminal
      ), "Must specify one or more sections of the dataset to use"
  
      dataset_lines = []
      if use_business:
          business_file = os.path.join(
              base_input_path, "hun_ner_corpus.txt"
          )
  
          lines = read_rgai_file(business_file, "\t")
          dataset_lines.extend(lines)
  
      if use_criminal:
          # There are two different annotation schemes, Context and
          # NoContext.  NoContext seems to fit better with the
          # business_file's annotation scheme, since the scores are much
          # higher when NoContext and hun_ner are combined
          criminal_file = os.path.join(
              base_input_path, "HVGJavNENoContext"
          )
  
          lines = read_rgai_file(criminal_file, " ")
          dataset_lines.extend(lines)
  
      return dataset_lines
  
imports: import os
  import tempfile
  from stanza.utils.datasets.ner.split_wikiner import split_wikiner
label_desc: Use image node_id 2 for calling a global function with example usage: get_rgai_data(base_input_path, use_business, use_criminal) and returns: dataset_lines