code: def from_binary(cls, binary):
      
      if binary not in cls.CACHE:
        if binary == sys.executable:
          cls.CACHE[binary] = cls._from_binary_internal()
        else:
          cls.CACHE[binary] = cls._from_binary_external(binary)
      return cls.CACHE[binary]
docs: Create an interpreter from the given `binary`.
  
      :param str binary: The path to the python interpreter binary.
      :return: an interpreter created from the given `binary` with only the specified
               extras.
      :rtype: :class:`PythonInterpreter`