<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_option(name, key_options, global_options, default=None):
 """ Search the key-specific options and the global options for a given setting. Either dictionary may be None. This will first search the key settings and then the global settings. :param name: The setting to search for :param key_options: The item specific settings :param global_options: General method parameters :return: The option, if found, or None """

    if key_options:
        try:
            return key_options[name]
        except KeyError:
            pass
    if global_options:
        try:
            return global_options[name]
        except KeyError:
            pass

    return default