docs: def _get_all_attributes(network):
      """
          Get all the complex mode attributes in the network so that they
          can be used for mapping to resource scenarios later.
      """
      attrs = network.attributes
      for n in network.nodes:
          attrs.extend(n.attributes)
      for l in network.links:
          attrs.extend(l.attributes)
      for g in network.resourcegroups:
          attrs.extend(g.attributes)
  
      return attrs