class_docstr: A general character-delimited format.
class_docstr_tok: ["A","general","character-delimited","format","."]
docstr: Return True if stream is valid.
docstr_tok: ["Return","True","if","stream","is","valid","."]
code: def detect(cls, stream):
      """Return True if stream is valid."""
      try:
          csv.Sniffer().sniff(stream, delimiters=cls.delimiter)
          return True
      except (csv.Error, TypeError):
          return False
  
imports: from __future__ import absolute_import
  import json
  from collections import OrderedDict
  from textblob.compat import PY2, csv
  from textblob.utils import is_filelike
label_desc: Use image node_id 3 for calling the DelimitedFormat obj's underlying member method code with example usage: obj.detect(cls, stream) and returns: True, False