    def _from_sample(self, sample: t.Any) -> IOType:
        """
        Creates a new instance of the IO Descriptor from given sample.

        Args:
            sample: The sample to create the instance from.
            **kwargs: Additional keyword arguments to pass to the constructor.

        Returns:
            An instance of the IODescriptor.
        """
        raise NotImplementedError
Creates a new instance of the IO Descriptor from given sample.

Args:
sample: The sample to create the instance from.
**kwargs: Additional keyword arguments to pass to the constructor.

Returns:
An instance of the IODescriptor.
src/bentoml/_internal/io_descriptors/base.py