code: def test_merge(self):
      res = self.gdf.merge(self.df, left_on="values", right_on="col1")
  
      # check result is a GeoDataFrame
      assert isinstance(res, GeoDataFrame)
  
      # check geometry property gives GeoSeries
      assert isinstance(res.geometry, GeoSeries)
  
      # check metadata
      self._check_metadata(res)
  
      # test that crs and other geometry name are preserved
      self.gdf.crs = "epsg:4326"
      self.gdf = self.gdf.rename(
          columns={"geometry": "points"}
      ).set_geometry("points")
      res = self.gdf.merge(self.df, left_on="values", right_on="col1")
      assert isinstance(res, GeoDataFrame)
      assert isinstance(res.geometry, GeoSeries)
      self._check_metadata(res, "points", self.gdf.crs)
  
file_path: geopandas/geopandas/tests/test_merge.py
imports: import warnings
  import pandas
  import pyproj
  import pytest
  from geopandas._compat import PANDAS_GE_21
  from geopandas.testing import assert_geodataframe_equal
  from pandas.testing import assert_index_equal
  from shapely.geometry import Point
  from geopandas import GeoDataFrame, GeoSeries
label_desc: Use image node_id 3 for calling the TestMerging obj's underlying member method code with example usage: obj.test_merge() without return types