code: def testNoBranchingSingleStepPerIteration(self):
      sequence, state, score = beam_search(
          initial_sequence=[],
          initial_state=1,
          generate_step_fn=self._generate_step_fn,
          num_steps=5,
          beam_size=1,
          branch_factor=1,
          steps_per_iteration=1,
      )
  
      # The generator should emit all zeros, as only a single sequence is ever
      # considered so the counter doesn't reach one.
      self.assertEqual(sequence, [0, 0, 0, 0, 0])
      self.assertEqual(state, 32)
      self.assertEqual(score, 0)
  
file_path: magenta/magenta/common/beam_search_test.py
imports: from magenta.common import beam_search
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling the BeamSearchTest obj's underlying member method code with example usage: obj.testNoBranchingSingleStepPerIteration() without return types