    def from_spec(cls, spec: t.Any) -> T:
        """
        Get an instance of this resource from user input. For example, a CPU resource
        might parse "10m" and return a CPU resource with 0.01 CPUs.
        """
Get an instance of this resource from user input. For example, a CPU resource
might parse "10m" and return a CPU resource with 0.01 CPUs.
src/bentoml/_internal/resource.py