parameters: (graph)
return_statement: return grouped_members
docstring: Return a map of class -> set of members in that class.
docstring_summary: Return a map of class -> set of members in that class.
docstring_tokens: Return a map of class - > set of members in that class .
function: def group_members_by_class(graph):
      """
      Return a map of class -> set of members in that class.
      """
      grouped_members = defaultdict(set)
      for (ty, name), node in graph.nodes.items():
          if ty in [ReachableObjectType.FIELD, ReachableObjectType.METHOD]:
              cls, sep, _ = name.partition(";")
              cls += ";"
              try:
                  cls_node = graph.get_node(cls)
              except KeyError:
                  continue
              grouped_members[cls_node].add(node)
      return grouped_members
function_tokens: def group_members_by_class ( graph ) : grouped_members = defaultdict ( set ) for ( ty , name ) , node in graph . nodes . items ( ) : if ty in [ ReachableObjectType . FIELD , ReachableObjectType . METHOD ] : cls , sep , _ = name . partition ( ";" ) cls += ";" try : cls_node = graph . get_node ( cls ) except KeyError : continue grouped_members [ cls_node ] . add ( node ) return grouped_members