code: def _graphic(self):
          
  
          if sys.platform.startswith("win"):
              return []
          if len(os.environ.get("DISPLAY", "")) > 0:
              return []
          if "-nographic" not in self._options:
              return ["-nographic"]
          return []
docs: Adds the correct graphic options depending of the OS