def METHOD_NAME(pb_path, optype_substring, name_prefix):
    op_map = {}
    op_count = 0
    with tf.Session() as sess:
        importGraphIntoSession(sess, pb_path)
        graph = sess.graph
        ops = graph.get_operations()
        for op in ops:
            process = False
            if optype_substring == "*" and (name_prefix == None
                                            or op.name.startswith(name_prefix)):
                process = True
            elif op.type.lower().find(optype_substring.lower()) != -1 and (
                    name_prefix == None or op.name.startswith(name_prefix)):
                process = True
            if process:
                op_count += 1
                if op_map.get(op.type) == None:
                    op_map[op.type] = 1
                else:
                    op_map[op.type] += 1
        # print op list
        print("")
        for op_type, count in op_map.items():
            print("\t" + op_type + " : \t" + str(count))
        print("")
        print("Total number of operations : " + str(op_count))
        print("Total number of operation types : " + str(len(op_map.keys())))
        print("")