code: def _assert_none_same(x, y, err_msg, verbose):
      x_id = shapely.is_missing(x)
      y_id = shapely.is_missing(y)
  
      if not (x_id == y_id).all():
          msg = build_err_msg(
              [x, y],
              err_msg + "\nx and y None location mismatch:",
              verbose=verbose,
          )
          raise AssertionError(msg)
  
      # If there is a scalar, then here we know the array has the same
      # flag as it everywhere, so we should return the scalar flag.
      if x.ndim == 0:
          return bool(x_id)
      elif y.ndim == 0:
          return bool(y_id)
      else:
          return y_id
  
file_path: shapely/shapely/testing.py
imports: from functools import partial
  import numpy
  import shapely
label_desc: Use image node_id 4 for calling a global function with example usage: _assert_none_same(x, y, err_msg, verbose) and returns: bool, bool, y_id