def METHOD_NAME(g, nodes, edges):
    """
    Create random graph
    Example:
    nodes, edges = create_random_schema()
    res = create_random_graph(redis_graph, nodes, edges)
    """
    result = {}
    result["indexes"] = []
    result["nodes"] = []
    result["edges"] = []
    for node in nodes:
        # print(node["labels"][0])
        # print(node["count"])
        index_label = node["labels"][0]
        res = create_node_exact_match_index(g, index_label, 'v', sync=True)
        result["indexes"].append(res)
        data, range_pattern = create_nodes_range(node, "map")
        node_pattern = create_node_pattern(node, "map")
        res = g.query(f"{range_pattern} {node_pattern}", {"nodes": data})
        result["nodes"].append(res)
    for edge in edges:
        # print(edge["type"])
        # print(edge["count"])
        data, range_pattern = create_edge_range(edge, nodes, "map")
        edge_pattern = create_edge_pattern(edge, nodes, "map")
        res = g.query(
            f"{range_pattern} {edge_pattern}", {"edges": data})
        result["edges"].append(res)
    return result