def METHOD_NAME(args):
    """Query task status according to id.
    Args:
        args: args includes task_id
    """
    task_id = args.task_id
    # Create a gRPC channel
    port = str(config.grpc_api_port)
    channel = grpc.insecure_channel("localhost:" + port)
    # Create a stub (client)
    stub = neural_solution_pb2_grpc.TaskServiceStub(channel)
    request = neural_solution_pb2.TaskId(task_id=task_id)  # pylint: disable=no-member
    response = stub.GetTaskById(request)
    logger.info(response.status)
    logger.info(response.optimized_result)
    logger.info(response.result_path)