code: def _build_fixed_output(
      averaged_outs,
      last_outs,
      outputs,
      batch_positions,
      varying_rows,
      num_varying_rows,
      link,
      linearizing_weights,
  ):
      if len(last_outs.shape) == 1:
          _build_fixed_single_output(
              averaged_outs,
              last_outs,
              outputs,
              batch_positions,
              varying_rows,
              num_varying_rows,
              link,
              linearizing_weights,
          )
      else:
          _build_fixed_multi_output(
              averaged_outs,
              last_outs,
              outputs,
              batch_positions,
              varying_rows,
              num_varying_rows,
              link,
              linearizing_weights,
          )
  
imports: import copy
  import numpy
  import scipy.sparse
  from numba import njit
  from ..None import links
label_desc: Use image node_id 4 for calling a global function with example usage: _build_fixed_output(averaged_outs, last_outs, outputs, batch_positions, varying_rows, num_varying_rows, link, linearizing_weights) without return types