docstr: Convert data dict which contains essential information to SMSample.
  
  :param dict data: contains 'hypothesis', 'premise', 'y' keys.
  :return:
code: def load(self, data):
      r"""
      Convert data dict which contains essential information to SMSample.
  
      :param dict data: contains 'hypothesis', 'premise', 'y' keys.
      :return:
  
      """
      self.hypothesis = TextField(data["hypothesis"])
      self.premise = TextField(data["premise"])
      self.y = Field(data["y"], field_type=str)
  
      if not self.is_legal():
          raise ValueError(
              "y can only be entailment, neutral, "
              "contradiction and non-entailment"
          )
  
file_path: textflint/textflint/input/component/sample/nli_sample.py
imports: from .sample import Sample
  from ..field import Field, TextField
label_desc: Use image node_id 4 for calling the NLISample obj's underlying member method code with example usage: obj.load(data) without return types