class_docstr: Helper class to determine properties from datatype strings.
class_docstr_tok: ["Helper","class","to","determine","properties","from","datatype","strings","."]
docstr: Return whether we should return eval_labels or labels.
  
  :param datatype:
      parlai datatype
  
  :return is_training:
      bool indicating whether should return eval_labels or labels
docstr_tok: ["Return","whether","we","should","return","eval_labels","or","labels",".",":","param","datatype",":","parlai","datatype",":","return","is_training",":","bool","indicating","whether","should","return","eval_labels","or","labels"]
code: def is_training(cls, datatype: str) -> bool:
      """
      Return whether we should return eval_labels or labels.
  
      :param datatype:
          parlai datatype
  
      :return is_training:
          bool indicating whether should return eval_labels or labels
      """
      assert datatype is not None, "datatype must not be none"
      return "train" in datatype and "evalmode" not in datatype
  
file_path: ParlAI/parlai/utils/data.py
imports: import random
  from typing import List
label_desc: Use image node_id 5 for calling the DatatypeHelper obj's underlying member method code with example usage: obj.is_training(cls, datatype) and returns: unknown