code: def infoNCE_local_global(z_n, z_g, batch, tau=0.5, norm=True):
      """
      Args:
          z_n: Tensor of shape [n_nodes, z_dim].
          z_g: Tensor of shape [n_graphs, z_dim].
          tau: Float. Usually in (0,1].
          norm: Boolean. Whether to apply normlization.
      """
      # Not yet used in existing methods, to be implemented.
      loss = 0
  
      return loss
  
imports: import itertools
  import torch
  import torch.nn.functional
label_desc: Use image node_id 3 for calling a global function with example usage: infoNCE_local_global(z_n, z_g, batch, tau, norm) and returns: loss