code: def linear_inshape(module_masks, mask):
      """
      Coarse grained input mask does not change the shape of weights and output tensor
  
      Parameters
      ----------
      module_masks : ModuleMasks
          The ModuleMasks instance of the linear
      mask : CoarseMask
          The mask of its input tensor
  
      Returns
      -------
      CoarseMask
          The mask of its output tensor, ```None``` means shape of output tensor is not changed
      """
      assert isinstance(mask, CoarseMask)
      assert mask.mask_index[0] is None
      if module_masks.input_mask is not None:
          assert module_masks.input_mask <= mask
      module_masks.set_input_mask(mask)
      return None
  
imports: import logging
  import torch
label_desc: Use image node_id 9 for calling a global function with example usage: linear_inshape(module_masks, mask) and returns: None