class_docstr: Helper class to determine properties from datatype strings.
class_docstr_tok: ["Helper","class","to","determine","properties","from","datatype","strings","."]
docstr: Remove :stream from the datatype.
  
  Used by ChunkTeacher where behavior does not change based on streaming.
  
  :param datatype:
      parlai datatype
  
  :return:
      a non-streaming version of the datatype.
  
  >>> DatatypeHelper.fold("train:stream")
  "train"
  >>> DatatypeHelper.fold("train")
  "train"
docstr_tok: ["Remove",":","stream","from","the","datatype",".","Used","by","ChunkTeacher","where","behavior","does","not","change","based","on","streaming",".",":","param","datatype",":","parlai","datatype",":","return",":","a","non-streaming","version","of","the","datatype",".",">",">",">","DatatypeHelper.fold","(","``","train",":","stream","''",")","''","train","''",">",">",">","DatatypeHelper.fold","(","``","train","''",")","''","train","''"]
code: def strip_stream(cls, datatype: str) -> str:
      """
      Remove :stream from the datatype.
  
      Used by ChunkTeacher where behavior does not change based on streaming.
  
      :param datatype:
          parlai datatype
  
      :return:
          a non-streaming version of the datatype.
  
      >>> DatatypeHelper.fold("train:stream")
      "train"
      >>> DatatypeHelper.fold("train")
      "train"
      """
      return datatype.replace(":stream", "")
  
file_path: ParlAI/parlai/utils/data.py
imports: import random
  from typing import List
label_desc: Use image node_id 2 for calling the DatatypeHelper obj's underlying member method code with example usage: obj.strip_stream(cls, datatype) and returns: datatype