code: def __init__(
      self,
      hiddenstate,
      enc_attn_weights_average,
      previousNode,
      wordId,
      logProb,
      length,
  ):
      self.h = hiddenstate
      self.enc_attn_weights_average = enc_attn_weights_average
      self.prevNode = previousNode
      self.wordid = wordId
      self.logp = logProb
      self.leng = length
  
imports: from copy import deepcopy
  import torch
  import torch.nn
  from graph4nlp.pytorch.modules.prediction.generation.base import DecoderBase
label_desc: Use image node_id 1 to create a new BeamSearchNode object from inherited base classes: object with example: obj = BeamSearchNode(hiddenstate, enc_attn_weights_average, previousNode, wordId, logProb, length)