def METHOD_NAME(filename, **kwargs):
    is_binary = kwargs.get('encoding', None) == 'binary'
    mode = 'rb' if is_binary else 'r'
    if "fits" in filename:
        with open(data_path(DATA_FILES["image"]), mode) as file_obj:
            yield file_obj
    else:
        with open(data_path(DATA_FILES["votable"]), mode) as file_obj:
            yield file_obj