code: def get_norm_layer(norm_type="instance"):
      if norm_type == "batch":
          norm_layer = functools.partial(nn.BatchNorm2d, affine=True)
      elif norm_type == "instance":
          norm_layer = functools.partial(
              nn.InstanceNorm2d, affine=False
          )
      else:
          raise NotImplementedError(
              "normalization layer [%s] is not found" % norm_type
          )
      return norm_layer
  
imports: import torch
  import torch.nn
  import functools
  from torch.autograd import Variable
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: get_norm_layer(norm_type) and returns: norm_layer