'Returns an array to be recycle within a category of items with the item id and item count.
:param category_inventory:
:param category_count:
:param category_max:
:return: array of items to be recycle.
:rtype: array'

def get_category_items_to_recycle(self, category_inventory, category_count, category_max):

    x = 0
    items_to_recycle = []
    if (category_count > category_max):
        items_to_be_recycled = (category_count - category_max)
        for item in category_inventory:
            if (items_to_be_recycled == 0):
                break
            if (items_to_be_recycled >= item[1]):
                items_to_recycle.append([])
                items_to_recycle[x].append(item[0])
                items_to_recycle[x].append(item[1])
            else:
                items_to_recycle.append([])
                items_to_recycle[x].append(item[0])
                items_to_recycle[x].append(items_to_be_recycled)
            items_to_be_recycled = (items_to_be_recycled - items_to_recycle[x][1])
            x = (x + 1)
    return items_to_recycle
