# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

from openvino.tools.mo.ops.sparse_segment_sqrtn import SparseSegmentSqrtN
from openvino.tools.mo.front.extractor import FrontExtractorOp


class SparseSegmentSqrtNFrontExtractor(FrontExtractorOp):
    op = 'SparseSegmentSqrtN'
    enabled = True

    @classmethod
    def extract(cls, node):
        attrs = {}

        SparseSegmentSqrtN.update_node_stat(node, attrs)

        return cls.enabled
