code: def test_list_primitives_order():
      df = list_primitives()
      all_primitives = get_transform_primitives()
      all_primitives.update(get_aggregation_primitives())
  
      for name, primitive in all_primitives.items():
          assert name in df["name"].values
          row = df.loc[df["name"] == name].iloc[0]
          actual_desc = _get_descriptions([primitive])[0]
          if actual_desc:
              assert actual_desc == row["description"]
          assert row["dask_compatible"] == (
              Library.DASK in primitive.compatibility
          )
          assert row["valid_inputs"] == ", ".join(
              _get_unique_input_types(primitive.input_types),
          )
          expected_return_type = (
              str(primitive.return_type)
              if primitive.return_type is not None
              else None
          )
          assert row["return_type"] == expected_return_type
  
      types = df["type"].values
      assert "aggregation" in types
      assert "transform" in types
  
imports: import os
  import pytest
  from featuretools import list_primitives, summarize_primitives
  from featuretools.primitives import AddNumericScalar, Age, Count, Day, Diff, GreaterThan, Haversine, IsFreeEmailDomain, IsNull, Last, Max, Mean, Min, Mode, Month, MultiplyBoolean, NMostCommon, NumCharacters, NumericLag, NumUnique, NumWords, PercentTrue, Skew, Std, Sum, Weekday, Year, get_aggregation_primitives, get_default_aggregation_primitives, get_default_transform_primitives, get_transform_primitives
  from featuretools.primitives.base import PrimitiveBase
  from featuretools.primitives.base.transform_primitive_base import TransformPrimitive
  from featuretools.primitives.utils import _check_input_types, _get_descriptions, _get_summary_primitives, _get_unique_input_types, list_primitive_files, load_primitive_from_file
  from featuretools.utils.gen_utils import Library
label_desc: Use image node_id 1 for calling a global function with example usage: test_list_primitives_order() without return types