code: def test_geom_from_stat():
      stat = stat_identity(geom="point")
      assert isinstance(geom.from_stat(stat), geom_point)
  
      stat = stat_identity(geom="geom_point")
      assert isinstance(geom.from_stat(stat), geom_point)
  
      stat = stat_identity(geom=geom_point())
      assert isinstance(geom.from_stat(stat), geom_point)
  
      stat = stat_identity(geom=geom_point)
      assert isinstance(geom.from_stat(stat), geom_point)
  
imports: import pandas
  import pytest
  from plotnine import aes, geom_point, ggplot, stat_identity
  from plotnine.exceptions import PlotnineError
  from plotnine.geoms.geom import geom
label_desc: Use image node_id 3 for calling a global function with example usage: test_geom_from_stat() without return types