human
I wrote the below code

    def _quota_delta(resource):
        return (sense * (new_flavor[resource] - old_flavor[resource]))
    deltas = {}
    if ((compare * _quota_delta('vcpus')) > 0):
        deltas['cores'] = _quota_delta('vcpus')
    if ((compare * _quota_delta('memory_mb')) > 0):
        deltas['ram'] = _quota_delta('memory_mb')
    return deltas

What's a good function header?

=====
Write me a Python code to compare * _quota_delta('vcpus')) > 0):?
assistant
#Here is Python code to compare * _quota_delta('vcpus')) > 0):
.

def resize_quota_delta(context, new_flavor, old_flavor, sense, compare):