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_offset(self, instance, tokens):
      map_strategy_dict = {
          "first": self.record_to_offset_first_role,
          "closest": self.record_to_offset_closest_role,
          "longer_first": self.record_to_offset_closest_role,
      }
      if self._map_config.map_strategy in map_strategy_dict:
          map_function = map_strategy_dict[
              self._map_config.map_strategy
          ]
          return map_function(
              instance=instance,
              token_list=tokens,
          )
      else:
          raise NotImplementedError(
              f"The map strategy {self._map_config.map_strategy} in {self.__class__} is not implemented."
          )
  
imports: from asyncio.log import logger
  import sys
  from typing import Tuple
  import numpy
  import logging
label_desc: Use image node_id 1 for calling the RelationRecord obj's underlying member method code with example usage: obj.to_offset(instance, tokens) and returns: map_function