code: def test_cf_from_invalid():
      with pytest.raises(CRSError):
          CRS.from_cf(
              dict(
                  longitude_of_central_meridian=265.0,
                  latitude_of_projection_origin=25.0,
              )
          )
  
      with pytest.raises(CRSError):
          CRS.from_cf(
              dict(
                  grid_mapping_name="invalid",
                  latitude_of_projection_origin=25.0,
              )
          )
  
imports: import numpy
  import pytest
  from numpy.testing import assert_almost_equal
  from packaging import version
  from pyproj import CRS
  from pyproj.crs import ProjectedCRS
  from pyproj.crs._cf1x8 import _try_list_if_string
  from pyproj.crs.coordinate_operation import LambertAzimuthalEqualAreaConversion, LambertCylindricalEqualAreaConversion, MercatorAConversion, OrthographicConversion, PolarStereographicAConversion, PolarStereographicBConversion, SinusoidalConversion, StereographicConversion, VerticalPerspectiveConversion
  from pyproj.exceptions import CRSError
  from test.conftest import PROJ_GTE_901, PROJ_LOOSE_VERSION
label_desc: Use image node_id 18 for calling a global function with example usage: test_cf_from_invalid() without return types