code: def test_dumbdbm_creation_mode(self):
      try:
          old_umask = os.umask(0o002)
          f = dumbdbm.open(_fname, "c", 0o637)
          f.close()
      finally:
          os.umask(old_umask)
  
      expected_mode = 0o635
      if os.name != "posix":
          # Windows only supports setting the read-only attribute.
          # This shouldn't fail, but doesn't work like Unix either.
          expected_mode = 0o666
  
      import stat
  
      st = os.stat(_fname + ".dat")
      self.assertEqual(stat.S_IMODE(st.st_mode), expected_mode)
      st = os.stat(_fname + ".dir")
      self.assertEqual(stat.S_IMODE(st.st_mode), expected_mode)
  
imports: import contextlib
  import io
  import operator
  import os
  import stat
  import unittest
  import dbm.dumb
  from test import support
  from test.support import os_helper
  from functools import partial
label_desc: Use image node_id 2 for calling the DumbDBMTestCase obj's underlying member method code with example usage: obj.test_dumbdbm_creation_mode() without return types