human
Complete this python program:
def get_core_apps(overrides=None):
assistant
#Here is the Python program you requested.

    """Return a list of oscar\s apps amended with any passed overrides
    """
    if (not overrides):
        return OSCAR_CORE_APPS
    from django.utils import six
    if isinstance(overrides, six.string_types):
        raise ValueError('get_core_apps    expects    a    list    or    tuple    of    apps    to    override')
    def get_app_label(app_label, overrides):
        pattern = app_label.replace('oscar.apps.', '')
        for override in overrides:
            if override.endswith(pattern):
                if (('dashboard' in override) and ('dashboard' not in pattern)):
                    continue
                return override
        return app_label
    apps = []
    for app_label in OSCAR_CORE_APPS:
        apps.append(get_app_label(app_label, overrides))
    return apps