def set_target(mag, time, lat, lon):
    """
    Map time, mag, and location values of target event to a dictionary.
    Args:
        mag (float):
            Target event magnitude.
        time (datetime):
            Target event time.
        lat (float):
            Target event latitude.
        lon (float):
            Target event longitude.
    Returns:
        targets (dictionary): Dictionary of target event magnitude,
        time, and location values.
    """
    target = {"mag": mag, "time": time, "lat": lat, "lon": lon}
    return target