code: def _get_gid(name):
      """Returns a gid, given a group name."""
      if name is None:
          return None
  
      try:
          from grp import getgrnam
      except ImportError:
          return None
  
      try:
          result = getgrnam(name)
      except KeyError:
          result = None
      if result is not None:
          return result[2]
      return None
  
imports: import os
  import sys
  import stat
  import fnmatch
  import collections
  import errno
label_desc: Use image node_id 23 for calling a global function with example usage: _get_gid(name) and returns: None, None, result, None