docstr: Convert data dict which contains essential information to SASample.
  
  :param dict data: contains 'x', 'y' keys.
  :return:
docstr_tok: ["Convert","data","dict","which","contains","essential","information","to","SASample",".",":","param","dict","data",":","contains","'","x","'",",","'","y","'","keys",".",":","return",":"]
code: def load(self, data):
      r"""
      Convert data dict which contains essential information to SASample.
  
      :param dict data: contains 'x', 'y' keys.
      :return:
  
      """
      self.x = TextField(data["x"])
      self.y = Field(data["y"])
      if not self.is_legal():
          raise ValueError(
              "Data sample {0} is not legal, "
              "the mask spans mismatch x text".format(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 5 for calling the SASample obj's underlying member method code with example usage: obj.load(data) without return types