class_docstr: Buckets are used to store the bytecode for one template.  It's created
  and initialized by the bytecode cache and passed to the loading functions.
  
  The buckets get an internal checksum from the cache assigned and use this
  to automatically reject outdated cache material.  Individual bytecode
  cache subclasses don't have to care about cache invalidation.
class_docstr_tok: ["Buckets","are","used","to","store","the","bytecode","for","one","template",".","It","'s","created","and","initialized","by","the","bytecode","cache","and","passed","to","the","loading","functions",".","The","buckets","get","an","internal","checksum","from","the","cache","assigned","and","use","this","to","automatically","reject","outdated","cache","material",".","Individual","bytecode","cache","subclasses","do","n't","have","to","care","about","cache","invalidation","."]
docstr: Load bytecode from a string.
docstr_tok: ["Load","bytecode","from","a","string","."]
code: def bytecode_from_string(self, string):
      """Load bytecode from a string."""
      self.load_bytecode(BytesIO(string))
  
imports: import errno
  import fnmatch
  import os
  import stat
  import sys
  import tempfile
  from hashlib import sha1
  from os import listdir
  from os import path
  from ._compat import BytesIO
  from ._compat import marshal_dump
  from ._compat import marshal_load
  from ._compat import pickle
  from ._compat import text_type
  from .utils import open_if_exists
label_desc: Use image node_id 5 for calling the Bucket obj's underlying member method code with example usage: obj.bytecode_from_string(string) without return types