def METHOD_NAME():
    """
    API Endpoint to identify all trainspaces for a given user id
    This endpoint will go into the trainspace Dynamo DB and query by user id all trainspace data objects
    Params:
      - uid: Unique User id
    Results:
      - 200: Able to query and retrieve trainspace objects belonging to a user
      - 400: Error in querying trainspace data for a given uid. Could be on the client side or server side
    """
    try:
        user_id = request.environ["user"]["uid"]
        record = getAllUserTrainspaceData(user_id)
        return send_success({"record": record})
    except Exception:
        print(traceback.format_exc())
        return send_traceback_error()