code: def get_data_records(objs, mask_role, type):
      output = []
      for obj in objs:
          multi_conversations = parse_conversations(obj)
          for conversations in multi_conversations:
              if len(conversations) <= 1:
                  # remove single turn conversations
                  continue
              conversation_obj = {}
              conversation_obj["conversations"] = []
              conversation_obj["tree_id"] = obj["message_tree_id"]
              conversation_obj["conversations"] = conversations
              conversation_obj["system"] = system_prompt
              conversation_obj["mask"] = mask_role
              conversation_obj["type"] = type
              output.append(conversation_obj)
      return output
  
imports: import json
  import random
  import fire
label_desc: Use image node_id 3 for calling a global function with example usage: get_data_records(objs, mask_role, type) and returns: output