code: def relations_of_type(reltype=None):
      
      relation_data = []
      reltype = reltype or relation_type()
      for relid in relation_ids(reltype):
          for relation in relations_for_id(relid):
              relation['__relid__'] = relid
              relation_data.append(relation)
      return relation_data
docs: Get relations of a specific type