code: def ref_mod2(x0, x1, fmod):
      if x0.dtype == np.float32 or fmod == True:
          return np.fmod(x0, x1)
      else:
          return np.mod(x0, x1)
  
imports: import pytest
  import numpy
  import nnabla.functions
  from nbla_test_utils import list_context
label_desc: Use image node_id 1 for calling a global function with example usage: ref_mod2(x0, x1, fmod) and returns: np, np