code: def test_load_sample(self):
      # test wrong data
  
      # invalid field(assertion error)
      self.assertRaises(
          AssertionError,
          WSDSample,
          {
              "x": sentence,
              "pos": pos,
              "lemma": lemma,
              "instance": instance,
              "sentence_id": "d000.s000",
              "source": "semeval2007",
              "sample_id": None,
          },
      )
  
      # miss field(assertion error)
      self.assertRaises(
          AssertionError,
          WSDSample,
          {
              "sentence": sentence,
              "pos": pos,
              "lemma": lemma,
              "instance": instance,
              "source": "semeval2007",
              "sample_id": None,
          },
      )
      # wrong type
      self.assertRaises(
          AssertionError,
          WSDSample,
          {
              "sentence": EnProcessor.inverse_tokenize(sentence),
              "pos": pos,
              "lemma": lemma,
              "instance": instance,
              "sentence_id": "d000.s000",
              "source": "semeval2007",
              "sample_id": None,
          },
      )
  
      self.assertRaises(
          AssertionError,
          WSDSample,
          {
              "sentence": sentence,
              "pos": pos,
              "lemma": lemma,
              "instance": [
                  [t[0], t[1] - 1, t[2], t[3], t[4]] for t in instance
              ],
              "sentence_id": "d000.s000",
              "source": "semeval2007",
              "sample_id": None,
          },
      )
  
      self.assertRaises(
          AssertionError,
          WSDSample,
          {
              "sentence": sentence,
              "pos": pos,
              "lemma": lemma,
              "instance": [
                  [t[0], t[1], t[2] + 1, t[3], t[4]] for t in instance
              ],
              "sentence_id": "d000.s000",
              "source": "semeval2007",
              "sample_id": None,
          },
      )
  
      self.assertRaises(
          AssertionError,
          WSDSample,
          {
              "sentence": sentence,
              "pos": pos,
              "lemma": lemma,
              "instance": [
                  [t[0], t[2], t[1], t[3], t[4]] for t in instance
              ],
              "sentence_id": "d000.s000",
              "source": "semeval2007",
              "sample_id": None,
          },
      )
  
file_path: textflint/test/input/component/sample/test_wsd_sample.py
imports: import unittest
  from textflint.input.component.sample.wsd_sample import *
  from textflint.common.preprocess.en_processor import EnProcessor
label_desc: Use image node_id 1 for calling the TestWSDSample obj's underlying member method code with example usage: obj.test_load_sample() without return types