code: def test_spatial_homogenous_na():
      recs = {
          "p": [neo4j.spatial.Point([1, 2, 3, 4]), None],
          "c": [neo4j.spatial.CartesianPoint([1, 2]), None],
          "c2": [neo4j.spatial.CartesianPoint([1, 2, 3]), None],
          "w": [neo4j.spatial.WGS84Point([4, 5]), None],
      }
      df = pd.DataFrame(recs)
      df2 = neo_df_to_pd_df(df)
      assert df2.dtypes.to_dict() == {
          "p": np.dtype("object"),
          # "p_srid": np.dtype("object"),
          "c": np.dtype("object"),
          "c_x": np.dtype("float64"),
          "c_y": np.dtype("float64"),
          "c_srid": np.dtype("float64"),
          "c2": np.dtype("object"),
          "c2_x": np.dtype("float64"),
          "c2_y": np.dtype("float64"),
          "c2_z": np.dtype("float64"),
          "c2_srid": np.dtype("float64"),
          "w": np.dtype("object"),
          "w_x": np.dtype("float64"),
          "w_y": np.dtype("float64"),
          # "w_longitude": np.dtype("float64"),
          "w_latitude": np.dtype("float64"),
          "w_srid": np.dtype("float64"),
      }
      d = df2.to_dict(orient="records")[0]
      assert d == {
          "p": "POINT(1.0 2.0 3.0 4.0)",
          "c": "POINT(1.0 2.0)",
          "c_x": 1.0,
          "c_y": 2.0,
          "c_srid": 7203.0,
          "c2": "POINT(1.0 2.0 3.0)",
          "c2_x": 1.0,
          "c2_y": 2.0,
          "c2_z": 3.0,
          "c2_srid": 9157.0,
          "w": "POINT(4.0 5.0)",
          "w_x": 4.0,
          "w_y": 5.0,
          # "w_longitude": 4.,
          "w_latitude": 5.0,
          "w_srid": 4326.0,
      }
  
      d2 = df2.to_dict(orient="records")[1]
      for k in d2.keys():
          if k not in ["p", "c", "c2", "w", "p_srid"]:
              assert pd.isna(d2[k])
  
      pa.Table.from_pandas(df2)
  
file_path: pygraphistry/graphistry/tests/test_bolt_util.py
imports: import datetime, graphistry, neo4j, os, numpy, pandas, pyarrow, pytest
  from graphistry.bolt_util import neo_df_to_pd_df, node_id_key, node_type_key, start_node_id_key, end_node_id_key, relationship_id_key, relationship_type_key
label_desc: Use image node_id 7 for calling a global function with example usage: test_spatial_homogenous_na() without return types