code: def validate_coords(coords):
      assert coords.ndim == 2, coords.ndim
      assert coords.shape[1] == 2, coords.shape
      assert np.issubdtype(coords.dtype, np.float), coords.dtype
  
imports: import copy
  import numpy
  from contextlib import contextmanager
  from ..utils import logger
  from ..utils.argtools import shape2d
  from .base import RNGDataFlow
  from .common import MapData, MapDataComponent
label_desc: Use image node_id 2 for calling a global function with example usage: validate_coords(coords) without return types