code: def test_load_sample(self):
      # test wrong data
      self.assertRaises(AssertionError, DPSample, {"word": word})
      self.assertRaises(AssertionError, DPSample, {"postag": postag})
      self.assertRaises(AssertionError, DPSample, {"head": head})
      self.assertRaises(AssertionError, DPSample, {"deprel": deprel})
      self.assertRaises(
          AssertionError,
          DPSample,
          {
              "word": word,
              "postag": postag,
              "head": head,
              "deprel": "amod",
          },
      )
      self.assertRaises(
          IndexError,
          DPSample,
          {"word": [], "postag": [], "head": [], "deprel": []},
      )
      postag_temp1 = postag[:-1]
      self.assertRaises(
          ValueError,
          DPSample,
          {
              "word": word,
              "postag": postag_temp1,
              "head": head,
              "deprel": deprel,
          },
      )
      postag_temp2 = postag + ["NN"]
      self.assertRaises(
          ValueError,
          DPSample,
          {
              "word": word,
              "postag": postag_temp2,
              "head": head,
              "deprel": deprel,
          },
      )
      postag_temp3 = postag + [""]
      self.assertRaises(
          ValueError,
          DPSample,
          {
              "word": word,
              "postag": postag_temp3,
              "head": head,
              "deprel": deprel,
          },
      )
      word_temp = word + [""]
      self.assertRaises(
          ValueError,
          DPSample,
          {
              "word": word_temp,
              "postag": postag,
              "head": head,
              "deprel": deprel,
          },
      )
      deprel_temp = deprel[:-1] + ["nn"]
      self.assertRaises(
          AssertionError,
          DPSample,
          {
              "word": word,
              "postag": postag,
              "head": head,
              "deprel": deprel_temp,
          },
      )
  
file_path: textflint/test/input/component/sample/test_dp_sample.py
imports: import unittest
  from textflint.input.component.sample.dp_sample import *
label_desc: Use image node_id 1 for calling the TestDPSample obj's underlying member method code with example usage: obj.test_load_sample() without return types