code: def blend_np(image1, image2, factor):
      image1 = image1.astype("float32")
      image2 = image2.astype("float32")
      difference = image2 - image1
      scaled = factor * difference
      temp = image1 + scaled
      if factor >= 0.0 and factor <= 1.0:
          temp = np.round(temp)
          return temp
      temp = np.round(np.clip(temp, 0.0, 255.0))
      return temp
  
imports: import pytest
  import tensorflow
  import numpy
  from tensorflow_addons.image import compose_ops
label_desc: Use image node_id 1 for calling a global function with example usage: blend_np(image1, image2, factor) and returns: temp, temp