code: def latlong_df_spark(latlong_df_pandas):
      ps = pytest.importorskip(
          "pyspark.pandas", reason="Spark not installed, skipping"
      )
      return ps.from_pandas(
          latlong_df_pandas.applymap(
              lambda tup: list(tup) if isinstance(tup, tuple) else tup,
          ),
      )
  
imports: from datetime import datetime
  import numpy
  import pandas
  import pytest
  from woodwork.exceptions import TypeConversionError
  from woodwork.logical_types import Boolean, Categorical, Datetime, Double, Integer, NaturalLanguage
  from featuretools.entityset.entityset import LTI_COLUMN_NAME, EntitySet
  from featuretools.tests.testing_utils import to_pandas
  from featuretools.utils.gen_utils import Library, import_or_none, is_instance
label_desc: Use image node_id 41 for calling a global function with example usage: latlong_df_spark(latlong_df_pandas) and returns: ps