class_docstr: Container object for datasets
  
  Dictionary-like object that exposes its keys as attributes.
  
  >>> b = Bunch(a=1, b=2)
  >>> b['b']
  2
  >>> b.b
  2
  >>> b.a = 3
  >>> b['a']
  3
  >>> b.c = 6
  >>> b['c']
  6
class_docstr_tok: ["Container","object","for","datasets","Dictionary-like","object","that","exposes","its","keys","as","attributes",".",">",">",">","b","=","Bunch","(","a=1",",","b=2",")",">",">",">","b","[","'","b","'","]","2",">",">",">","b.b","2",">",">",">","b.a","=","3",">",">",">","b","[","'","a","'","]","3",">",">",">","b.c","=","6",">",">",">","b","[","'","c","'","]","6"]
code: def __setstate__(self, state):
      # Bunch pickles generated with scikit-learn 0.16.* have an non
      # empty __dict__. This causes a surprising behaviour when
      # loading these pickles scikit-learn 0.17: reading bunch.key
      # uses __dict__ but assigning to bunch.key use __setattr__ and
      # only changes bunch['key']. More details can be found at:
      # https://github.com/scikit-learn/scikit-learn/issues/6196.
      # Overriding __setstate__ to be a noop has the effect of
      # ignoring the pickled __dict__
      pass
  
imports: import os
  import csv
  import sys
  import shutil
  from os import environ
  from os.path import dirname
  from os.path import join
  from os.path import exists
  from os.path import expanduser
  from os.path import isdir
  from os.path import splitext
  from os import listdir
  from os import makedirs
  import numpy
  from ..utils import check_random_state
label_desc: Use image node_id 5 for calling the Bunch obj's underlying member method code with example usage: obj.__setstate__(state) without return types