code: def testDyads(self):
      # @note: this test is not exhaustive, it only checks whether the
      # L{DyadCensus} objects "understand" attribute and item accessors
      dc = self.g.dyad_census()
      accessors = [
          "mut",
          "mutual",
          "asym",
          "asymm",
          "asymmetric",
          "null",
      ]
      for a in accessors:
          self.assertTrue(isinstance(getattr(dc, a), int))
          self.assertTrue(isinstance(dc[a], int))
      self.assertTrue(isinstance(list(dc), list))
      self.assertTrue(isinstance(tuple(dc), tuple))
      self.assertTrue(len(list(dc)) == 3)
      self.assertTrue(len(tuple(dc)) == 3)
  
file_path: python-igraph/tests/test_motifs.py
imports: import unittest
  from igraph import Graph
label_desc: Use image node_id 2 for calling the MotifTests obj's underlying member method code with example usage: obj.testDyads() without return types