code: def test_import_optional_dependency_present():
      # pandas is not optional, but we know it is present
      pandas = import_optional_dependency("pandas")
      assert pandas is not None
  
      # module imported normally must be same
      import pandas as pd
  
      assert pandas == pd
  
imports: import pytest
  from geopandas._compat import import_optional_dependency
label_desc: Use image node_id 1 for calling a global function with example usage: test_import_optional_dependency_present() without return types