code: def get_user():
      """Return the current user name, or None if getuser() does not work
      in the current environment (see #1010).
      """
      import getpass
  
      try:
          return getpass.getuser()
      except (ImportError, KeyError):
          return None
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import re
  import tempfile
  import warnings
  import attr
  import py
  import six
  import pytest
  from .pathlib import ensure_reset_dir
  from .pathlib import LOCK_TIMEOUT
  from .pathlib import make_numbered_dir
  from .pathlib import make_numbered_dir_with_cleanup
  from .pathlib import Path
  from _pytest.monkeypatch import MonkeyPatch
label_desc: Use image node_id 1 for calling a global function with example usage: get_user() and returns: getpass, None