code: def from_data(cls, data):
      ms_data = cls()
      for k, item in data:
          ms_data[k] = item
      return ms_data
  
imports: import torch
  from typing import List, Optional
  from torch_geometric.data import Data
  from torch_geometric.data import Batch
  from torch_points3d.datasets.multiscale_data import MultiScaleBatch, MultiScaleData
  import re
label_desc: Use image node_id 5 for calling the MultiScalePair obj's underlying member method code with example usage: obj.from_data(cls, data) and returns: ms_data