code: def require(executable: str, explanation: str = "") -> None:
      
      assert shutil.which(executable), "Need {!r} on the PATH.{}".format(
          executable, "\n" + explanation if explanation else "")
docs: Ensures that the external tool is available.
      Asserts upon failure.