<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def store(auth, provider, config_location=DEFAULT_CONFIG_DIR):
 """Store auth info in file for specified provider """


    auth_file = None
    try:
        # only for custom locations
        _create_config_dir(config_location,
                           "Creating custom config directory [%s]... ")

        config_dir = os.path.join(config_location, NOIPY_CONFIG)
        _create_config_dir(config_dir, "Creating directory [%s]... ")

        auth_file = os.path.join(config_dir, provider)
        print("Creating auth info file [%s]... " % auth_file, end="")
        with open(auth_file, 'w') as f:
            buff = auth.base64key.decode('utf-8')
            f.write(buff)
        print("OK.")

    except IOError as e:
        print('{0}: "{1}"'.format(e.strerror, auth_file))
        raise e