code: def __init__(
      self,
      semiring=LogSemiring,
      sparse_rounds=3,
      max_gap=None,
      local=False,
  ):
      self.semiring = semiring
      self.sparse_rounds = sparse_rounds
      self.local = local
      self.max_gap = max_gap
  
file_path: pytorch-struct/torch_struct/alignment.py
imports: import torch
  from .helpers import _Struct
  import math
  from .semirings import LogSemiring
  from .semirings.fast_semirings import broadcast
label_desc: Use image node_id 1 to create a new Alignment object from inherited base classes: _Struct with example: obj = Alignment(semiring, sparse_rounds, max_gap, local)