code: def test_derived_geographic_crs__from_methods():
      crs_str = (
          "+proj=ob_tran +o_proj=longlat +o_lat_p=0 +o_lon_p=0 +lon_0=0"
      )
      with pytest.raises(
          CRSError, match="Invalid type Geographic 2D CRS"
      ):
          DerivedGeographicCRS.from_epsg(4326)
      assert_maker_inheritance_valid(
          DerivedGeographicCRS.from_string(crs_str),
          DerivedGeographicCRS,
      )
      assert_maker_inheritance_valid(
          DerivedGeographicCRS.from_proj4(crs_str), DerivedGeographicCRS
      )
      assert_maker_inheritance_valid(
          DerivedGeographicCRS.from_user_input(
              DerivedGeographicCRS.from_string(crs_str)
          ),
          DerivedGeographicCRS,
      )
      assert_maker_inheritance_valid(
          DerivedGeographicCRS.from_json(CRS(crs_str).to_json()),
          DerivedGeographicCRS,
      )
      assert_maker_inheritance_valid(
          DerivedGeographicCRS.from_json_dict(
              CRS(crs_str).to_json_dict()
          ),
          DerivedGeographicCRS,
      )
  
imports: import pytest
  from pyproj.crs import CRS, BoundCRS, CompoundCRS, CustomConstructorCRS, DerivedGeographicCRS, GeocentricCRS, GeographicCRS, ProjectedCRS, VerticalCRS
  from pyproj.crs.coordinate_operation import AlbersEqualAreaConversion, LambertConformalConic2SPConversion, RotatedLatitudeLongitudeConversion, ToWGS84Transformation, TransverseMercatorConversion, UTMConversion
  from pyproj.crs.coordinate_system import Cartesian2DCS, Ellipsoidal3DCS, VerticalCS
  from pyproj.crs.datum import CustomDatum
  from pyproj.crs.enums import VerticalCSAxis
  from pyproj.exceptions import CRSError
  from test.conftest import PROJ_GTE_901, assert_can_pickle
label_desc: Use image node_id 8 for calling a global function with example usage: test_derived_geographic_crs__from_methods() without return types