nodes: 0, module; 1, function_definition; 2, function_name:by_user; 3, parameters; 4, block; 5, identifier:config; 6, expression_statement; 7, expression_statement; 8, expression_statement; 9, expression_statement; 10, expression_statement; 11, comment:"""Display LDAP group membership sorted by user."""; 12, assignment; 13, call; 14, assignment; 15, call; 16, identifier:client; 17, call; 18, attribute; 19, argument_list; 20, identifier:audit_api; 21, call; 22, attribute; 23, argument_list; 24, identifier:Client; 25, argument_list; 26, identifier:client; 27, identifier:prepare_connection; 28, identifier:API; 29, argument_list; 30, identifier:CLI; 31, identifier:parse_membership; 32, string; 33, call; 34, identifier:client; 35, string_content:Groups by User; 36, attribute; 37, argument_list; 38, identifier:audit_api; 39, identifier:by_user
code: def by_user(config):
          """Display LDAP group membership sorted by user."""
          client = Client()
          client.prepare_connection()
          audit_api = API(client)
          CLI.parse_membership('Groups by User', audit_api.by_user())