def create_record(client, user):
    """
    Creates a record in indexd and returns that record's GUID.
    """
    document = {
        "form": "object",
        "size": 123,
        "urls": ["s3://endpointurl/bucket/key"],
        "hashes": {"md5": "8b9942cf415384b27cadf1f4d2d682e5"},
        "metadata": {"project_id": "bpa-UChicago"},
    }
    res = client.post("/index/", json=document, headers=user)
    assert res.status_code == 200
    # The GUID is the "did" (Document IDentifier) returned from a successful
    # POST request.
    guid = res.get_json()["did"]

    return guid