def get_default_argument(function, argument):
    argument_index = find_argument_index(function, argument)
    num_positional_args = (function.func_code.co_argcount - len(function.func_defaults))
    default_position = argument_index - num_positional_args
    if default_position < 0:
        return None
    return function.func_defaults[default_position]
dataset/ETHPy150Open potatolondon/djangae/djangae/contrib/security/middleware.py/get_default_argument/original