code: def test_batch_scorer():
      # TODO: make this a useful test
      batch = 2
      seq = 4
      nh = 6
      logits = pt.ones(batch, seq, nh)
      label = pt.ones(batch, seq).to(pt.long)
      length_ratio = pt.ones(
          batch,
      )
      source_length = pt.randint(0, seq, (batch,)).to(pt.float32)
      target_length = source_length
      b = sockeye.scoring.BatchScorer(
          scorer=CandidateScorer(1.0, 0.0, 0.0),
          score_type="neglogprob",
          constant_length_ratio=None,
      )
      scores = b(
          logits, label, length_ratio, source_length, target_length
      )
      assert scores.shape == (batch, 1)
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_batch_scorer() without return types