code: def get_source_index_for_nn(
      scale, dst_index, half_pixel, half_pixel_for_nn
  ):
      if half_pixel_for_nn:
          return scale * (dst_index + 0.5)
      else:
          return get_source_index(scale, dst_index, half_pixel)
  
imports: from __future__ import division
  import pytest
  import numpy
  import nnabla.functions
  import refs
  from nbla_test_utils import list_context
label_desc: Use image node_id 4 for calling a global function with example usage: get_source_index_for_nn(scale, dst_index, half_pixel, half_pixel_for_nn) and returns: unknown, get_source_index