def METHOD_NAME():
    graph_topology = build_graph_topology()
    graph_instance = build_graph_instance()
    try:
        set_graph_response = invoke_method_helper(MediaGraphTopologySetRequest(graph=graph_topology))
        list_graph_response = invoke_method_helper(MediaGraphTopologyListRequest())
        if list_graph_response:
            list_graph_result = MediaGraphTopologyCollection.deserialize(list_graph_response)
        get_graph_response = invoke_method_helper(MediaGraphTopologyGetRequest(name=graph_topology_name))
        if get_graph_response:
            get_graph_result = MediaGraphTopology.deserialize(get_graph_response)
        set_graph_instance_response = invoke_method_helper(MediaGraphInstanceSetRequest(instance=graph_instance))
        activate_graph_instance_response = invoke_method_helper(MediaGraphInstanceActivateRequest(name=graph_instance_name))
        get_graph_instance_response = invoke_method_helper(MediaGraphInstanceGetRequest(name=graph_instance_name))
        if get_graph_instance_response:
            get_graph_instance_result = MediaGraphInstance.deserialize(get_graph_instance_response)
        deactivate_graph_instance_response = invoke_method_helper(MediaGraphInstanceDeActivateRequest(name=graph_instance_name))
        delete_graph_instance_response = invoke_method_helper(MediaGraphInstanceDeleteRequest(name=graph_instance_name))
        delete_graph_response = invoke_method_helper(MediaGraphTopologyDeleteRequest(name=graph_topology_name))
    except Exception as ex:
        print(ex)