class_docstr: NER Sample class to hold the necessary info and provide atomic operations.
class_docstr_tok: ["NER","Sample","class","to","hold","the","necessary","info","and","provide","atomic","operations","."]
docstr: Check rare data format.
  
  :param dict data: rare data input.
docstr_tok: ["Check","rare","data","format",".",":","param","dict","data",":","rare","data","input","."]
code: def check_data(self, data):
      r"""
      Check rare data format.
  
      :param dict data: rare data input.
  
      """
      assert "x" in data and isinstance(
          data["x"], (str, list)
      ), r"Type of 'x' should be 'str' or 'list'"
  
      assert "y" in data and isinstance(
          data["y"], (str, list)
      ), r"Type of 'y' should be 'list'"
  
      assert (
          self.mode == "BIO" or self.mode == "BIOES"
      ), "Not support {0} type, plz ensure mode in {1}".format(
          self.mode, ["BIO", "BIOES"]
      )
  
imports: from .sample import Sample
  from ..field import ListField, TextField
  from ....common.utils.list_op import get_align_seq
label_desc: Use image node_id 3 for calling the NERSample obj's underlying member method code with example usage: obj.check_data(data) without return types