code: def test_brevity_penalty_int_input():
      hyp_length = 3
      ref_length = 5
      brevity_penalty = sockeye.beam_search.BrevityPenalty(2.0)
      expected_bp = [2.0 * (1 - 5 / 3)]
  
      assert onp.isclose(
          brevity_penalty(hyp_length, ref_length), expected_bp
      )
  
imports: from typing import List, Optional
  from typing import Tuple
  import numpy
  import pytest
  import torch
  import numpy
  import sockeye.beam_search
  import sockeye.constants
  import sockeye.lexicon
  import sockeye.utils
label_desc: Use image node_id 6 for calling a global function with example usage: test_brevity_penalty_int_input() without return types