def get_adapter(
        self, name: Optional[str] = None, use_io_binding: bool = False
    ) -> tuple[InferenceSession, str, dict[str, Any]]:
        """Get the session, template and inputs for the specified adapter.

        :param name: Name of the adapter to use. If None, the default adapter is used.
        :param use_io_binding: Whether to use IO binding for the adapter.
        :return: Tuple of session, template and inputs.
            The adapter_inputs are either numpy arrays or OrtValues depending on use_io_binding.
        """
        if name is None:
            name = self.default_adapter
        elif name not in self.adapters:
            raise ValueError(f"Adapter {name} not found.")

        session = self.sessions[self.adapters[name]["session"]]
        template = self.adapters[name]["template"]
        inputs = (
            self.adapters[name].get("ortvalue_inputs") if use_io_binding else self.adapters[name].get("numpy_inputs")
        )
        return session, template, inputs
Get the session, template and inputs for the specified adapter.

        :param name: Name of the adapter to use. If None, the default adapter is used.
        :param use_io_binding: Whether to use IO binding for the adapter.
        :return: Tuple of session, template and inputs.
            The adapter_inputs are either numpy arrays or OrtValues depending on use_io_binding.
        
examples/utils/generator.py