<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_commands(self, view=None):
 """ Retrieve a list of running global commands. @param view: View to materialize ('full' or 'summary') @return: A list of running commands. """

    return self._get("commands", ApiCommand, True,
        params = view and dict(view=view) or None)