code: def forward(self, x, mask):
      return torch.cat(
          (
              self.global_max_pool(x * mask),
              self.global_max_pool(x * (1.0 - mask)),
          ),
          dim=1,
      )
  
imports: import torch
  import torch.nn
label_desc: Use image node_id 2 for calling the MaskedGlobalMaxPool2d obj's underlying member method code with example usage: obj.forward(x, mask) and returns: torch