code: def test_geocentric_crs__from_methods():
      assert_maker_inheritance_valid(
          GeocentricCRS.from_epsg(4978), GeocentricCRS
      )
      assert_maker_inheritance_valid(
          GeocentricCRS.from_string("EPSG:4978"), GeocentricCRS
      )
      assert_maker_inheritance_valid(
          GeocentricCRS.from_proj4("+proj=geocent"), GeocentricCRS
      )
      assert_maker_inheritance_valid(
          GeocentricCRS.from_user_input(
              GeocentricCRS.from_string("EPSG:4978")
          ),
          GeocentricCRS,
      )
      assert_maker_inheritance_valid(
          GeocentricCRS.from_json(CRS(4978).to_json()), GeocentricCRS
      )
      assert_maker_inheritance_valid(
          GeocentricCRS.from_json_dict(CRS(4978).to_json_dict()),
          GeocentricCRS,
      )
      with pytest.raises(CRSError, match="Invalid type"):
          GeocentricCRS.from_epsg(6933)
  
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 10 for calling a global function with example usage: test_geocentric_crs__from_methods() without return types