If I write it, it will looks like

```
case function
  when 'Change' then sm.main_dialog == :next
  when 'Summary' then sm.summary
  when 'Write' then sm.save
  ...
  when 'Import', 'Export', 'Read', 'Reset', 'SetModified'
     #FIXME: TBD
     {}
  else
    Builtins.y2error("Unknown Autoyast command: #{function}, #{params.inspect}")
    nil
  end
end #of function
```