code: def facter_info():
      
  
      with suppress(FileNotFoundError):  # facter may not be installed
          proc = subprocess.Popen(['facter', '--yaml'],
                                  stdout=subprocess.PIPE,
                                  stderr=subprocess.PIPE)
          stdout, stderr = proc.communicate()
          if not proc.returncode:
              data = serializer.load(stdout)
              return {'facter': data}
docs: Returns data from facter.