def METHOD_NAME(memory_scope):
    """
    This function translates SYCL memory scope to SPIRV scope.
    For DPCPP implementation please refer:
    https://github.com/intel/llvm/blob/sycl-nightly/20210507/sycl/include/CL/sycl/detail/spirv.hpp#L247
    """
    if memory_scope == sycl_memory_scope.work_item:
        return _spv_scope.Invocation.value
    elif memory_scope == sycl_memory_scope.sub_group:
        return _spv_scope.Subgroup.value
    elif memory_scope == sycl_memory_scope.work_group:
        return _spv_scope.Workgroup.value
    elif memory_scope == sycl_memory_scope.device:
        return _spv_scope.Device.value
    elif memory_scope == sycl_memory_scope.system:
        return _spv_scope.CrossDevice.value
    else:
        raise ValueError("Invalid memory scope provided")