def METHOD_NAME(io, data, record_type, record_keys, name, print_name):
    """ Print out single line record entries """
    if data is None:
        return
    if isinstance(record_keys, str):
        record_keys = [record_keys]
    elif not isinstance(record_keys, list):
        raise ValueError('record_keys must be a string or list of strings')
    in_or_azure = "IN"
    if record_type == 'ALIAS':
        in_or_azure = "AZURE"
    name_display = name if print_name else ' ' * len(name)
    print('{} {} {} {} '.format(name_display, data['ttl'], in_or_azure, record_type), end='', file=io)
    for i, key in enumerate(record_keys):
        print(data[key], end='\n' if i == len(record_keys) - 1 else ' ', file=io)