code: def dry_run_scan(self, scan_id, targets):
          
  
          os.setsid()
          for _, target in enumerate(targets):
              host = resolve_hostname(target[0])
              if host is None:
                  logger.info("Couldn't resolve %s.", target[0])
                  continue
              port = self.get_scan_ports(scan_id, target=target[0])
              logger.info("%s:%s: Dry run mode.", host, port)
              self.add_scan_log(scan_id, name='', host=host,
                                value='Dry run result')
          self.finish_scan(scan_id)
docs: Dry runs a scan.