human
Complete the below
def check_install_build_global(options, check_options=None):

    ''''Disable wheels if per-setup.py call options are set.
    :param options: The OptionParser options to update.
    :param check_options: The options to check, if not supplied defaults to
    options.'
    '''

Give me a the Python code you requested?
assistant
#Here is the Python code you requested.
    if (check_options is None):
        check_options = options
    def getname(n):
        return getattr(check_options, n, None)
    names = ['build_options', 'global_options', 'install_options']
    if any(map(getname, names)):
        control = options.format_control
        fmt_ctl_no_binary(control)
        warnings.warn('Disabling    all    use    of    wheels    due    to    the    use    of    --build-options    /    --global-options    /    --install-options.', stacklevel=2)