class_docstr: WSCSample Class
class_docstr_tok: ["WSCSample","Class"]
docstr: Validate whether the sample is legal
docstr_tok: ["Validate","whether","the","sample","is","legal"]
code: def is_legal(self):
      r"""
      Validate whether the sample is legal
  
      """
  
      if self.noun1_idx < 0:
          return False
      if self.noun2_idx < 0:
          return False
      if self.pron_idx < 0:
          return False
  
      return True
  
imports: from copy import deepcopy
  import nltk
  import string
  from .sample import Sample
  from ..field import TextField
  from ....common.utils.error import FlintError
  from ....common.utils.list_op import normalize_scope
label_desc: Use image node_id 6 for calling the WSCSample obj's underlying member method code with example usage: obj.is_legal() and returns: True, False, False, False