code: def check_from_ri(self, ri, expected):
      res = ri.to_absolute(self.splits)
      expected_result = []
      for split_name, from_, to_ in expected:
          expected_result.append(
              splits._AbsoluteInstruction(split_name, from_, to_)
          )
      self.assertEqual(res, expected_result)
      return ri
  
imports: from tensorflow_datasets import testing
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import proto
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core.utils import shard_utils
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling the ReadInstructionTest obj's underlying member method code with example usage: obj.check_from_ri(ri, expected) and returns: ri