code: def test_to_frame(df):
      geo_name = df.geometry.name
      res1 = df[geo_name].to_frame()
      assert_object(res1, GeoDataFrame, geo_name, crs=df[geo_name].crs)
  
      res2 = df["geometry2"].to_frame()
      assert_object(res2, GeoDataFrame, "geometry2", crs=crs_osgb)
  
      res3 = df["value1"].to_frame()
      assert_object(res3, pd.DataFrame)
  
imports: import pandas
  import pyproj
  import pytest
  from shapely.geometry import Point
  import numpy
  from geopandas import GeoDataFrame, GeoSeries
  from geopandas.testing import assert_geodataframe_equal
label_desc: Use image node_id 11 for calling a global function with example usage: test_to_frame(df) without return types