docs: def remove_interfaces_from_vm_task(self, virtual_machine, filter_function=None):
          """
          Remove interface from VM
          @see https://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.VirtualMachine.html#reconfigure
          :param virtual_machine: <vim.vm object>
          :param filter_function: function that gets the device and decide if it should be deleted
          :return: Task or None
          """
          device_change = []
          for device in virtual_machine.config.hardware.device:
              if isinstance(device, vim.vm.device.VirtualEthernetCard) and \
                      (filter_function is None or filter_function(device)):
                  nicspec = vim.vm.device.VirtualDeviceSpec()
                  nicspec.operation = vim.vm.device.VirtualDeviceSpec.Operation.remove
                  nicspec.device = device
                  device_change.append(nicspec)
  
          if len(device_change) > 0:
              return self.pyvmomi_service.vm_reconfig_task(virtual_machine, device_change)
          return None