code: def cap_ignore_region(arr, region):
      assert len(region) == 2
      region = sorted(region)
      arr0 = arr.copy()
      arr[np.logical_and(arr > region[0], arr < region[1])] = region[0]
      return arr
  
imports: from nnabla.utils import nnabla_pb2
  from six.moves import filter
  import copy
  import nnabla
  import nnabla.ext_utils
  import nnabla.functions
  import nnabla.utils.converter
  import nnabla.dtypes
  from nnabla.testing import assert_allclose
  import numpy
  import numpy
  import platform
label_desc: Use image node_id 10 for calling a global function with example usage: cap_ignore_region(arr, region) and returns: arr