def __get_left_right_gate_location_data(gate_locations, gate_widths):
    """
    Get agent gate-location data for left and right edges of the environment.

    Generate data regarding permissible locations for agents to enter the
    environment at each of the entrance gates on the left and right edges of the
    environment.

    Parameters
    ----------
    gate_locations : list_like
        List of location tuples, with each tuple describing the (x, y) location
        of a gate.
    gate_widths : list_like
        List of floats, with each float describing the width of a gate.
    """
    gate_data = list()
    left_gate_ids = [0]
    right_gate_ids = [3, 4, 5, 6]
    gate_ids = [{'side': 'left', 'ids': left_gate_ids},
                {'side': 'right', 'ids': right_gate_ids}]
    x_left = 7.35
    x_right = 732.65

    for side_dict in gate_ids:
        side = side_dict['side']
        ids = side_dict['ids']
        for gate_number in ids:
            d = dict()
            d['side'] = side
            d['gate_number'] = gate_number
            x = x_left if side == 'left' else x_right
            location = gate_locations[gate_number]
            width = gate_widths[gate_number]
            y_upper = location[1] + (width / 2)
            y_lower = location[1] - (width / 2)
            d['upper'] = (x, y_upper)
            d['lower'] = (x, y_lower)

            gate_data.append(d)

    return gate_data