code: def test_get_valid_primitives_selected_primitives_strings(es):
      agg_prims, trans_prims = get_valid_primitives(
          es,
          "log",
          selected_primitives=["hour", "count"],
      )
      assert set(agg_prims) == set([Count])
      assert set(trans_prims) == set([Hour])
  
      agg_prims, trans_prims = get_valid_primitives(
          es,
          "products",
          selected_primitives=["hour"],
          max_depth=1,
      )
      assert set(agg_prims) == set()
      assert set(trans_prims) == set()
  
file_path: featuretools/featuretools/tests/synthesis/test_get_valid_primitives.py
imports: import pytest
  from woodwork.column_schema import ColumnSchema
  from featuretools.primitives import AggregationPrimitive, Count, Hour, IsIn, Not, TimeSincePrevious, TransformPrimitive
  from featuretools.synthesis.get_valid_primitives import get_valid_primitives
  from featuretools.utils.gen_utils import Library
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_valid_primitives_selected_primitives_strings(es) without return types