code: def getumask() -> int:
      """Get current umask value"""
      umask = os.umask(
          0
      )  # Note: Change umask value temporarily to obtain it
      os.umask(umask)
  
      return umask
  
imports: from __future__ import annotations
  import os
  import shutil
  import sys
  import warnings
  from typing import IO, TYPE_CHECKING, Any, Callable
  from sphinx.deprecation import RemovedInSphinx90Warning
label_desc: Use image node_id 1 for calling a global function with example usage: getumask() and returns: umask