<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_all_cmd_line_scopes():
 """Return all scopes that may be explicitly specified on the cmd line, in no particular order. Note that this includes only task scope, and not, say, subsystem scopes, as those aren't specifiable on the cmd line. """

    all_scopes ={GLOBAL_SCOPE}
    for goal in Goal.all():
      for task in goal.task_types():
        all_scopes.add(task.get_scope_info().scope)
    return all_scopes