@classmethod
def supports_device(cls, onnx_device_name):
    """Check whether the requested nGraph backend supports a particular ONNX device.

        During running ONNX backend tests this function is called on each item of ONNX defined
        devices list. Currently this list is hardcoded and contains only two entries:
         ('CPU', 'CUDA'). In order to check whether the requested nGraph backend stored as
         NgraphBackend class variable we have to map its name into ONNX device namespace and then
         verify whether the current version of nGraph library supports it.

        :param onnx_device_name: One of ONNX defined devices.
        :return: True if ONNX device is supported, otherwise False.
        """
    requested_backend_name_mapped_to_onnx_device = cls._get_onnx_device_name(
        cls.backend_name)
    return (onnx_device_name ==
        requested_backend_name_mapped_to_onnx_device and cls.
        supports_ngraph_device(cls.backend_name))
