code: def _stat(file):
      
      out = subprocess.check_output(
          ['stat', '-c', '%U %G %a', file]).decode('utf-8')
      return Ownership(*out.strip().split(' '))
docs: Get the Ownership information from a file.
  
      :param file: The path to a file to stat
      :type file: str
      :returns: owner, group, and mode of the specified file
      :rtype: Ownership
      :raises subprocess.CalledProcessError: If the underlying stat fails