code: def update_global_state(self, beam):
      pass
  
imports: import unittest
  from onmt.translate.beam_search import BeamSearch, GNMTGlobalScorer
  from onmt.translate.beam_search import BeamSearchLM
  from copy import deepcopy
  import torch
label_desc: Use image node_id 2 for calling the GlobalScorerStub obj's underlying member method code with example usage: obj.update_global_state(beam) without return types