code: def test_transform_point():
      """
      Mostly tests the workaround for a specific problem.
      Problem report in: https://github.com/SciTools/cartopy/issues/232
      Fix covered in: https://github.com/SciTools/cartopy/pull/277
      """
  
      # this way has always worked
      result = _CRS_ROB.transform_point(35.0, 70.0, _CRS_PC)
      assert_array_almost_equal(
          result, (2376187.2182271, 7275318.1162980)
      )
  
      # this always did something, but result has altered
      result = _CRS_ROB.transform_point(np.nan, 70.0, _CRS_PC)
      assert np.all(np.isnan(result))
  
      # this used to crash + is now fixed
      result = _CRS_ROB.transform_point(35.0, np.nan, _CRS_PC)
      assert np.all(np.isnan(result))
  
file_path: cartopy/lib/cartopy/tests/crs/test_robinson.py
imports: import numpy
  from numpy.testing import assert_almost_equal, assert_array_almost_equal
  import pytest
  import cartopy.crs
  from .helpers import check_proj_params
label_desc: Use image node_id 7 for calling a global function with example usage: test_transform_point() without return types