code: def test_from_numpy_xy():
      # Construct from separate x, y numpy arrays - if those are length 1,
      # this is allowed for compat with shapely 1.8
      # (https://github.com/shapely/shapely/issues/1587)
      p = Point(np.array([1.0]), np.array([2.0]))
      assert p.coords[:] == [(1.0, 2.0)]
  
      p = Point(np.array([1.0]), np.array([2.0]), np.array([3.0]))
      assert p.coords[:] == [(1.0, 2.0, 3.0)]
  
file_path: shapely/shapely/tests/geometry/test_point.py
imports: import numpy
  import pytest
  from shapely import Point
  from shapely.coords import CoordinateSequence
  from shapely.errors import DimensionError
label_desc: Use image node_id 4 for calling a global function with example usage: test_from_numpy_xy() without return types