code: def test_get_dependencies(es):
      f = Feature(es["log"].ww["value"])
      agg1 = Feature(f, parent_dataframe_name="sessions", primitive=Sum)
      agg2 = Feature(
          agg1, parent_dataframe_name="customers", primitive=Sum
      )
      d1 = Feature(agg2, "sessions")
      shallow = d1.get_dependencies(deep=False, ignored=None)
      deep = d1.get_dependencies(deep=True, ignored=None)
      ignored = set([agg1.unique_name()])
      deep_ignored = d1.get_dependencies(deep=True, ignored=ignored)
      assert [s.unique_name() for s in shallow] == [agg2.unique_name()]
      assert [d.unique_name() for d in deep] == [
          agg2.unique_name(),
          agg1.unique_name(),
          f.unique_name(),
      ]
      assert [d.unique_name() for d in deep_ignored] == [
          agg2.unique_name()
      ]
  
imports: import os.path
  import re
  import pytest
  from pympler.asizeof import asizeof
  from woodwork.column_schema import ColumnSchema
  from woodwork.logical_types import Datetime, Integer
  from featuretools import Feature, config, feature_base
  from featuretools.feature_base import IdentityFeature
  from featuretools.primitives import Count, Diff, Last, Mode, Negate, NMostCommon, NumUnique, Sum, TransformPrimitive
  from featuretools.synthesis.deep_feature_synthesis import can_stack_primitive_on_inputs
  from featuretools.tests.testing_utils import check_rename
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_dependencies(es) without return types