  def IsolatePods() -> None:
    """Isolates the pods via Kubernetes NetworkPolicy."""
    logger.info(
        'Creating deny-all NetworkPolicy for {0:s} '
        'workload...'.format(workload_id))
    mitigation.IsolatePodsWithNetworkPolicy(cluster, workload_pods,
                                            existing_policies_prompt=True)
Isolates the pods via Kubernetes NetworkPolicy.
libcloudforensics/providers/gcp/forensics.py