code: def _init_beta_gamma(
      shape, fix_parameters, param_init, no_bias, no_scale
  ):
      from nnabla.parameter import get_parameter_or_create
      from nnabla.initializer import ConstantInitializer
  
      if no_bias:
          beta = None
      else:
          beta_init = param_init.get("beta", ConstantInitializer(0))
          beta = get_parameter_or_create(
              "beta", shape, beta_init, True, not fix_parameters
          )
  
      if no_scale:
          gamma = None
      else:
          gamma_init = param_init.get("gamma", ConstantInitializer(1))
          gamma = get_parameter_or_create(
              "gamma", shape, gamma_init, True, not fix_parameters
          )
  
      return beta, gamma
  
imports: from __future__ import absolute_import
  from .function_bases import *
  from six.moves import reduce
  import numpy
  import nnabla
label_desc: Use image node_id 6 for calling a global function with example usage: _init_beta_gamma(shape, fix_parameters, param_init, no_bias, no_scale) and returns: beta,  gamma