code: def test_uniform(geom_fixture, size, request):
      geom = request.getfixturevalue(geom_fixture)[0]
      sample = uniform(geom, size=size, rng=1)
      sample_series = (
          geopandas.GeoSeries(sample)
          .explode(index_parts=True)
          .reset_index(drop=True)
      )
      assert len(sample_series) == size
      sample_in_geom = sample_series.buffer(0.00000001).sindex.query(
          geom, predicate="intersects"
      )
      assert len(sample_in_geom) == size
  
file_path: geopandas/geopandas/tools/tests/test_random.py
imports: import pytest
  import numpy
  import geopandas
  from geopandas.tools._random import uniform
label_desc: Use image node_id 6 for calling a global function with example usage: test_uniform(geom_fixture, size, request) without return types