code: def testInvalidAttributeNames(self):
      g = Graph.Famous("bull")
      for attr_name in [None, 2.654, unittest, str]:
          self.assertRaises(
              TypeError, g.vs.__setitem__, attr_name, "foo"
          )
          self.assertRaises(
              TypeError, g.vs.__getitem__, attr_name, "foo"
          )
          self.assertRaises(
              TypeError, g.vs[0].__setitem__, attr_name, "foo"
          )
          self.assertRaises(
              TypeError, g.vs[0].__getitem__, attr_name, "foo"
          )
          self.assertRaises(
              TypeError, g.es.__setitem__, attr_name, "foo"
          )
          self.assertRaises(
              TypeError, g.es.__getitem__, attr_name, "foo"
          )
          self.assertRaises(
              TypeError, g.es[0].__setitem__, attr_name, "foo"
          )
          self.assertRaises(
              TypeError, g.es[0].__getitem__, attr_name, "foo"
          )
  
imports: import unittest
  from igraph import Graph
label_desc: Use image node_id 10 for calling the AttributeTests obj's underlying member method code with example usage: obj.testInvalidAttributeNames() without return types