code: def test_get_max_input_output_length(
      supported_max_seq_len_source,
      supported_max_seq_len_target,
      forced_max_input_len,
      forced_max_output_len,
      length_ratio_mean,
      length_ratio_std,
      expected_max_input_len,
      expected_max_output_len,
  ):
      (
          max_input_len,
          get_max_output_len,
      ) = sockeye.inference.get_max_input_output_length(
          supported_max_seq_len_source=supported_max_seq_len_source,
          supported_max_seq_len_target=supported_max_seq_len_target,
          forced_max_input_len=forced_max_input_len,
          forced_max_output_len=forced_max_output_len,
          length_ratio_mean=length_ratio_mean,
          length_ratio_std=length_ratio_std,
          num_stds=1,
      )
      max_output_len = get_max_output_len(max_input_len)
  
      assert max_input_len <= supported_max_seq_len_source
      assert max_input_len == expected_max_input_len
      assert max_output_len == expected_max_output_len
  
imports: import itertools
  import json
  from math import ceil
  from unittest.mock import patch, Mock
  import numpy
  import pytest
  import torch
  import sockeye.beam_search
  import sockeye.constants
  import sockeye.data_io
  import sockeye.inference
  import sockeye.lexicon
  import sockeye.model
  import sockeye.utils
label_desc: Use image node_id 5 for calling a global function with example usage: test_get_max_input_output_length(supported_max_seq_len_source, supported_max_seq_len_target, forced_max_input_len, forced_max_output_len, length_ratio_mean, length_ratio_std, expected_max_input_len, expected_max_output_len) without return types