code: def test_single_table_dask_entityset_with_instance_ids():
      primitives_list = [
          "absolute",
          "is_weekend",
          "year",
          "day",
          "num_characters",
          "num_words",
      ]
      instance_ids = [0, 1, 3]
  
      dask_es = EntitySet(id="dask_es")
      df = pd.DataFrame(
          {
              "id": [0, 1, 2, 3],
              "values": [1, 12, -34, 27],
              "dates": [
                  pd.to_datetime("2019-01-10"),
                  pd.to_datetime("2019-02-03"),
                  pd.to_datetime("2019-01-01"),
                  pd.to_datetime("2017-08-25"),
              ],
              "strings": ["I am a string", "23", "abcdef ghijk", ""],
          },
      )
  
      values_dd = dd.from_pandas(df, npartitions=2)
      ltypes = {
          "values": Integer,
          "dates": Datetime,
          "strings": NaturalLanguage,
      }
      dask_es.add_dataframe(
          dataframe_name="data",
          dataframe=values_dd,
          index="id",
          logical_types=ltypes,
      )
  
      dask_fm, _ = dfs(
          entityset=dask_es,
          target_dataframe_name="data",
          trans_primitives=primitives_list,
          instance_ids=instance_ids,
      )
  
      pd_es = EntitySet(id="pd_es")
      pd_es.add_dataframe(
          dataframe_name="data",
          dataframe=df,
          index="id",
          logical_types=ltypes,
      )
  
      fm, _ = dfs(
          entityset=pd_es,
          target_dataframe_name="data",
          trans_primitives=primitives_list,
          instance_ids=instance_ids,
      )
  
      # Make sure both indexes are sorted the same
      dask_fm = dask_fm.compute().astype({"id": "int64"})
      pd.testing.assert_frame_equal(
          fm,
          dask_fm.set_index("id").loc[fm.index],
          check_dtype=False,
      )
  
file_path: featuretools/featuretools/tests/synthesis/test_dask_dfs.py
imports: import pandas
  import pytest
  from woodwork.logical_types import Datetime, Double, Integer, IntegerNullable, NaturalLanguage
  from featuretools import dfs
  from featuretools.entityset import EntitySet
  from featuretools.utils.gen_utils import import_or_none
label_desc: Use image node_id 3 for calling a global function with example usage: test_single_table_dask_entityset_with_instance_ids() without return types