class_docstr: transform and retrieve features of RESample
docstr: check whether type of data is correct
  
  :param dict data: data dict containing 'x', 'subj', 'obj' and 'y'
docstr_tok: ["check","whether","type","of","data","is","correct",":","param","dict","data",":","data","dict","containing","'","x","'",",","'subj","'",",","'obj","'","and","'","y","'"]
code: def check_data(self, data):
      r"""
      check whether type of data is correct
  
      :param dict data: data dict containing 'x', 'subj', 'obj' and 'y'
  
      """
      assert "x" in data and isinstance(
          data["x"], list
      ), "x should be in data, and the type of x should be list"
      assert "subj" in data and isinstance(
          data["subj"], list
      ), "subj should be in data, and the type of subj should be list"
      assert "obj" in data and isinstance(
          data["obj"], list
      ), "obj should be in data, and the type of obj should be list"
      assert "y" in data and isinstance(
          data["y"], str
      ), "y should be in data, and the type of y should be str"
  
imports: import random
  import copy
  from .sample import Sample
  from ..field import TextField
  from ....common.settings import TASK_MASK
label_desc: Use image node_id 3 for calling the RESample obj's underlying member method code with example usage: obj.check_data(data) without return types