class_docstr: Record for converting generated string to information record
  <type, arg1_type, arg1_span, arg2_type, arg2_span>
class_docstr_tok: ["Record","for","converting","generated","string","to","information","record","<","type",",","arg1_type",",","arg1_span",",","arg2_type",",","arg2_span",">"]
code: def to_string(instance):
      relation_list = list()
      for record in instance:
          relation_type = record["type"]
          relation = [relation_type]
          if len(record["roles"]) < 2:
              continue
          for role_type, text_str in record["roles"][:2]:
              relation += [role_type, text_str]
          relation_list += [tuple(relation)]
      return relation_list
  
imports: from asyncio.log import logger
  import sys
  from typing import Tuple
  import numpy
  import logging
label_desc: Use image node_id 2 for calling the RelationRecord obj's underlying member method code with example usage: obj.to_string(instance) and returns: relation_list