code: def _apply_affine(x, scale=None, bias=None):
      if scale is not None:
          x *= scale
  
      if bias is not None:
          x += bias
  
      return x
  
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 7 for calling a global function with example usage: _apply_affine(x, scale, bias) and returns: x