code: def as_dict(cls):
      return {
          a: getattr(cls, a)
          for a in dir(cls)
          if not a.startswith("_") and a != "as_dict"
      }
  
imports: import sys
  import warnings
  from collections import defaultdict
  import networkx
  from networkx.utils import open_file
label_desc: Use image node_id 1 for calling the BaseGlyphs obj's underlying member method code with example usage: obj.as_dict(cls) and returns: unknown