human
I wrote the below code

    command_name = 'systemctl'
    if (command == 'is_enabled'):
        command = 'is-enabled'
    elif (command == 'list'):
        def list_command(service_name):
            return [command_name, 'list-unit-files', '--type=service', '--no-pager', '--full']
        return list_command
    elif (command == 'set_target'):
        def set_target_command(target):
            return [command_name, 'isolate', target]
        return set_target_command
    def method(service_name):
        return [command_name, command, ('%s.service' % service_name)]
    return method

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

def systemd_command_generator(command):