docstr: Check whether 'x' and 'y' is eagal
  
  :param dict data: contains 'x', 'y' keys.
  :return:
docstr_tok: ["Check","whether","'","x","'","and","'","y","'","is","eagal",":","param","dict","data",":","contains","'","x","'",",","'","y","'","keys",".",":","return",":"]
code: def check_data(self, data):
      r"""
      Check whether 'x' and 'y' is eagal
  
      :param dict data: contains 'x', 'y' keys.
      :return:
  
      """
      assert "x" in data and isinstance(
          data["x"], str
      ), "x should be in data, and the type of context should be str"
      assert "y" in data, "y should be in data"
  
file_path: textflint/textflint/input/component/sample/sa_sample.py
imports: from .sample import Sample
  from ..field import Field, TextField
  from collections import OrderedDict
label_desc: Use image node_id 4 for calling the SASample obj's underlying member method code with example usage: obj.check_data(data) without return types