    def __init__(self):
        """
        Init operator, before a graph starts, the framework will call Operator __init__ function.

        Args:

        Raises:
            An exception during __init__ can terminate the graph run.
        """
        from towhee.runtime import get_sys_config  # pylint: disable=import-outside-toplevel

        sys_config = get_sys_config()
        if sys_config is not None:
            self._device_id = sys_config.device_id
        else:
            self._device_id = -1
        self._key = ''
Init operator, before a graph starts, the framework will call Operator __init__ function.

Args:

Raises:
An exception during __init__ can terminate the graph run.
towhee/operator/base.py