code: def compute_mask(self, _, default_mask):
      mask = default_mask.clone()
      # Prune every other entry in a tensor
      mask.view(-1)[::2] = 0
      return mask
  
imports: import re
  from collections import OrderedDict
  from logging import INFO
  from typing import Union
  import pytest
  import torch
  import torch.nn.utils.prune
  from lightning.pytorch import Trainer, seed_everything
  from lightning.pytorch.callbacks import ModelCheckpoint, ModelPruning
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.utilities.exceptions import MisconfigurationException
  from torch import nn
  from torch.nn import Sequential
  from tests_pytorch.helpers.runif import RunIf
label_desc: Use image node_id 1 for calling the TestPruningMethod obj's underlying member method code with example usage: obj.compute_mask(_, default_mask) and returns: mask