<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def insert_media(self, url):
 """Inserts Virtual Media to the device :param url: URL to image. :raises: SushyError, on an error from iLO. """

        try:
            super(VirtualMedia, self).insert_media(url, write_protected=True)
        except sushy_exceptions.SushyError:
            target_uri = self._get_action_element('insert').target_uri
            data = {'Image': url}
            self._conn.post(target_uri, data=data)