<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def nic_remove(self, container, index):
 """ Hot unplug of nic from a container Note: removing a nic, doesn't remove the nic from the container info object, instead it sets it's state to `destroyed`. :param container: container ID :param index: index of the nic as returned in the container object info (as shown by container.list()) :return: """

        args = {
            'container': container,
            'index': index
        }
        self._nic_remove.check(args)

        return self._client.json('corex.nic-remove', args)