code: def test_deprecations():
      G = nx.DiGraph([(0, 1), (1, 2)])
      with pytest.deprecated_call():
          nx.d_separated(G, 0, 2, {1})
      with pytest.deprecated_call():
          z = nx.minimal_d_separator(G, 0, 2)
  
imports: from itertools import combinations
  import pytest
  import networkx
label_desc: Use image node_id 29 for calling a global function with example usage: test_deprecations() without return types