human
I wrote the below code

    def get_branch_setting():
        '\n                                Finds    and    returns    the    branch    setting    based    on    the    Django    request    and    the    configuration    settings\n                                '
        branch = None
        hostname = get_current_request_hostname()
        if hostname:
            mappings = getattr(settings, 'HOSTNAME_MODULESTORE_DEFAULT_MAPPINGS', None)
            if mappings:
                for key in mappings.iterkeys():
                    if re.match(key, hostname):
                        return mappings[key]
        if (branch is None):
            branch = getattr(settings, 'MODULESTORE_BRANCH', None)
        return branch
    return get_branch_setting()

What's a good function header?

=====
Here's a good function header?
assistant
#Here's a good function header.

def _get_modulestore_branch_setting():