code: def test_compund_crs__from_methods():
      crs = CompoundCRS.from_string("EPSG:4326+5773")
      with pytest.raises(CRSError, match="Invalid type"):
          CompoundCRS.from_epsg(4326)
      assert_maker_inheritance_valid(crs, CompoundCRS)
      with pytest.raises(CRSError, match="Invalid type"):
          CompoundCRS.from_proj4("+proj=longlat +datum=WGS84 +vunits=m")
      assert_maker_inheritance_valid(
          CompoundCRS.from_user_input(crs), CompoundCRS
      )
      assert_maker_inheritance_valid(
          CompoundCRS.from_json(crs.to_json()), CompoundCRS
      )
      assert_maker_inheritance_valid(
          CompoundCRS.from_json_dict(crs.to_json_dict()), CompoundCRS
      )
  
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 15 for calling a global function with example usage: test_compund_crs__from_methods() without return types