docstr: Validate whether the sample is legal
docstr_tok: ["Validate","whether","the","sample","is","legal"]
code: def is_legal(self):
      """
      Validate whether the sample is legal
  
      """
      if len(self.x.mask) == len(self.x.words):
          return True
      else:
          return False
  
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 3 for calling the SASample obj's underlying member method code with example usage: obj.is_legal() and returns: True, False