code: def get_objects(semantic_str):
      matches = re.findall(r"\(([^)]+)", semantic_str)
      result = []
      for match in matches:
          if "," in match:
              result += list(map(int, match.split(",")))
          elif match.isdigit():
              result += [int(match)]
          else:
              pass
      return result
  
file_path: mmf/tools/scripts/gqa/convert_gqa_to_vqa.py
imports: import argparse
  import json
  import os
  import re
  from collections import Counter
  import h5py
  import numpy
  import tqdm
  from mmf.utils.process_answers import preprocess_answer
  from mmf.utils.text_processing import text_tokenize
label_desc: Use image node_id 2 for calling a global function with example usage: get_objects(semantic_str) and returns: result