code: def conv2d_inshape(module_masks, mask):
      """
      Shape change of input tensor does not affect the shape of its output tensor
      Parameters
      ----------
      module_masks : ModuleMasks
          The ModuleMasks instance of the conv2d
      mask : CoarseMask
          The mask of its input tensor
      Returns
      -------
      CoarseMask
          The mask of its output tensor
      """
      assert isinstance(mask, CoarseMask)
      if module_masks.input_mask is None:
          module_masks.set_input_mask(mask)
      else:
          # the same conv layer may be accessed more
          # than once, such as a concat operation.
          # mask conflict should be solved by fix_mask_conflict before speedup
  
          assert module_masks.input_mask == mask
  
      # shape changes pass through depths wise conv layers
      m = module_masks.module
      if m.in_channels == m.out_channels == m.groups:
          module_masks.output_mask = mask
          module_masks.input_mask = mask
          return mask
      return None
  
imports: import logging
  import torch
label_desc: Use image node_id 22 for calling a global function with example usage: conv2d_inshape(module_masks, mask) and returns: None, mask