code: def from_spec(cls, spec: str) -> str:
      return spec + "dummy"
  
file_path: BentoML/tests/unit/_internal/test_resource.py
imports: import math
  import pytest
  import bentoml
  import bentoml.exceptions
  from bentoml._internal.resource import CpuResource
  from bentoml._internal.resource import NvidiaGpuResource
  from bentoml._internal.resource import Resource
  from bentoml._internal.resource import get_resource
  from bentoml._internal.resource import system_resources
  from bentoml.exceptions import BentoMLConfigException
label_desc: Use image node_id 1 for calling the DummyResource obj's underlying member method code with example usage: obj.from_spec(cls, spec) and returns: unknown