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 shuffle data based on the datatype.
  
  :param datatype:
      parlai datatype
  
  :return should_shuffle:
      given datatype, return whether we should shuffle
docstr_tok: ["Return","whether","we","should","shuffle","data","based","on","the","datatype",".",":","param","datatype",":","parlai","datatype",":","return","should_shuffle",":","given","datatype",",","return","whether","we","should","shuffle"]
code: def should_shuffle(cls, datatype: str) -> bool:
      """
      Return whether we should shuffle data based on the datatype.
  
      :param datatype:
          parlai datatype
  
      :return should_shuffle:
          given datatype, return whether we should shuffle
      """
      assert datatype is not None, "datatype must not be none"
      return (
          "train" in datatype
          and "evalmode" not in datatype
          and "ordered" not in datatype
          and "stream" not in datatype
      )
  
file_path: ParlAI/parlai/utils/data.py
imports: import random
  from typing import List
label_desc: Use image node_id 4 for calling the DatatypeHelper obj's underlying member method code with example usage: obj.should_shuffle(cls, datatype) and returns: unknown