code: def _replace_nan(arr):
      return np.where(np.isnan(arr), 0.0, arr)
  
file_path: shapely/shapely/testing.py
imports: from functools import partial
  import numpy
  import shapely
label_desc: Use image node_id 2 for calling a global function with example usage: _replace_nan(arr) and returns: np