def set_clipboard(self, text):
        """
        Set clipboard content

        Args:
            text: text to be set

        Returns:
            None

        """
        text = escape_special_char(text)

        try:
            ret = self.device_op("clipboard", f'--TEXT {text}')
        except Exception as e:
            raise AirtestError("set clipboard failed, %s" % repr(e))
        else:
            if ret and "Exception" in ret:
                raise AirtestError("set clipboard failed: %s" % ret)

        Set clipboard content

        Args:
            text: text to be set

        Returns:
            None

        
airtest/core/android/yosemite_ext.py