code: def test_random_triad_deprecated():
      G = nx.path_graph(3, create_using=nx.DiGraph)
      with pytest.deprecated_call():
          nx.random_triad(G)
  
imports: import itertools
  from collections import defaultdict
  from random import sample
  import pytest
  import networkx
label_desc: Use image node_id 2 for calling a global function with example usage: test_random_triad_deprecated() without return types