code: def logsumexp(x, dim=1):
      return torch.logsumexp(x.float(), dim=dim).type_as(x)
  
file_path: fairseq/fairseq/modules/dynamic_crf_layer.py
imports: import numpy
  import torch
  import torch.nn
label_desc: Use image node_id 1 for calling a global function with example usage: logsumexp(x, dim) and returns: torch