@classmethod
def load(cls, config: Dict[(Text, Any)], model_storage: ModelStorage, resource: Resource, execution_context: ExecutionContext, **kwargs: Any) -> DIETClassifier:
    'Loads a policy from the storage (see parent class for full docstring).'
    try:
        with model_storage.read_from(resource) as model_path:
            return cls._load(model_path, config, model_storage, resource, execution_context)
    except ValueError:
        logger.debug(f"Failed to load {cls.__class__.__name__} from model storage. Resource '{resource.name}' doesn't exist.")
        return cls(config, model_storage, resource, execution_context)
Loads a policy from the storage (see parent class for full docstring).
@classmethod
def load(cls, config: Dict[(Text, Any)], model_storage: ModelStorage, resource: Resource, execution_context: ExecutionContext, **kwargs: Any) -> DIETClassifier:
    
    try:
        with model_storage.read_from(resource) as model_path:
            return cls._load(model_path, config, model_storage, resource, execution_context)
    except ValueError:
        logger.debug(f"Failed to load {cls.__class__.__name__} from model storage. Resource '{resource.name}' doesn't exist.")
        return cls(config, model_storage, resource, execution_context)