code: def test_add_dataframe_from_spark_df(pd_es):
      cleaned_df = pd_to_spark_clean(pd_es["log"])
      log_spark = ps.from_pandas(cleaned_df)
  
      spark_es = EntitySet(id="spark_es")
      spark_es = spark_es.add_dataframe(
          dataframe_name="log_spark",
          dataframe=log_spark,
          index="id",
          time_index="datetime",
          logical_types=pd_es["log"].ww.logical_types,
          semantic_tags=get_df_tags(pd_es["log"]),
      )
      pd.testing.assert_frame_equal(
          cleaned_df,
          spark_es["log_spark"].to_pandas(),
          check_like=True,
      )
  
file_path: featuretools/featuretools/tests/entityset_tests/test_spark_es.py
imports: import pandas
  import pytest
  from woodwork.logical_types import Datetime, Double, Integer, NaturalLanguage
  from featuretools.entityset import EntitySet
  from featuretools.tests.testing_utils import get_df_tags
  from featuretools.utils.gen_utils import Library, import_or_none
  from featuretools.utils.spark_utils import pd_to_spark_clean
label_desc: Use image node_id 1 for calling a global function with example usage: test_add_dataframe_from_spark_df(pd_es) without return types