code: def _get_norm_batch(x, p):
      batch_size = x.size(0)
      return x.abs().pow(p).view(batch_size, -1).sum(dim=1).pow(1.0 / p)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import torch
  import torch.nn
  import torch.nn.functional
label_desc: Use image node_id 16 for calling a global function with example usage: _get_norm_batch(x, p) and returns: x