def METHOD_NAME(client, args):
    get_request = GetDirectoryFieldRequest()
    get_request.id = args.id
    get_request.field_key = args.field_key
    try:
        res = client.GetDirectoryField(get_request)
        print(
            "Successfully got field: (%s, %s) for ID: %s" % (
                res.key,
                res.value,
                args.id,
            ),
        )
    except grpc.RpcError as e:
        print("gRPC failed with %s: %s" % (e.code(), e.details()))