code: def test_average_clustering(self):
      G = nx.cycle_graph(3, create_using=nx.DiGraph())
      G.add_edge(2, 3)
      assert nx.average_clustering(G) == (1 + 1 + 1 / 3) / 8
      assert (
          nx.average_clustering(G, count_zeros=True)
          == (1 + 1 + 1 / 3) / 8
      )
      assert (
          nx.average_clustering(G, count_zeros=False)
          == (1 + 1 + 1 / 3) / 6
      )
      assert nx.average_clustering(G, [1, 2, 3]) == (1 + 1 / 3) / 6
      assert (
          nx.average_clustering(G, [1, 2, 3], count_zeros=True)
          == (1 + 1 / 3) / 6
      )
      assert (
          nx.average_clustering(G, [1, 2, 3], count_zeros=False)
          == (1 + 1 / 3) / 4
      )
  
imports: import pytest
  import networkx
label_desc: Use image node_id 3 for calling the TestDirectedAverageClustering obj's underlying member method code with example usage: obj.test_average_clustering() without return types