code: def test_bunch_methods():
      b = nib.Bunch(a=2)
      b.update(a=3)
      newb = b.dictcopy()
      assert b.a == 3
      assert b.get("a") == 3
      assert b.get("badkey", "otherthing") == "otherthing"
      assert b != newb
      assert type(dict()) == type(newb)
      assert newb["a"] == 3
  
file_path: nipype/nipype/interfaces/base/tests/test_support.py
imports: import os
  import pytest
  from pkg_resources import resource_filename
  from ....utils.filemanip import md5
  from ...None import base
label_desc: Use image node_id 4 for calling a global function with example usage: test_bunch_methods() without return types