code: def detach_network_interface(self, network_interface_id, force=False):
          
          params = {'NetworkInterfaceId' : network_interface_id}
          if force:
              params['Force'] = 'true'
          return self.get_status('DetachNetworkInterface', params, verb='POST')
docs: Detaches a network interface from an instance.
  
          :type network_interface_id: str
          :param network_interface_id: The ID of the network interface to detach.
  
          :type force: bool
          :param force: Set to true to force a detachment.