<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_all_function_definitions(base_most_function):
 """ Obtains all function definitions given a base-most function. This includes the provided function, plus any overrides of that function. Returns: (list):
 Returns any the provided function and any overriding functions defined for it. """

        # We assume the provided function is the base-most function, so we check all derived contracts
        # for a redefinition
        return [base_most_function] + [function for derived_contract in base_most_function.contract.derived_contracts
                                       for function in derived_contract.functions
                                       if function.full_name == base_most_function.full_name]