code: def split_and_pad_single_record(data, episodes, T):
      episodes_data = []
      idx = 0
      for episode in episodes:
          len_ = len(episode)
          episodes_data.append(data[idx : idx + len_])
          idx += len_
      return split_and_pad(episodes_data, T)
  
file_path: ray/rllib/connectors/learner/default_learner_connector.py
imports: from functools import partial
  from typing import Any, List, Optional
  import numpy
  import tree
  from ray.rllib.connectors.connector_v2 import ConnectorV2
  from ray.rllib.core.models.base import STATE_IN, STATE_OUT
  from ray.rllib.core.rl_module.rl_module import RLModule
  from ray.rllib.policy.sample_batch import SampleBatch
  from ray.rllib.utils.annotations import override
  from ray.rllib.utils.numpy import convert_to_numpy
  from ray.rllib.utils.typing import EpisodeType
label_desc: Use image node_id 2 for calling a global function with example usage: split_and_pad_single_record(data, episodes, T) and returns: split_and_pad