parameters: (blocks)
return_statement: return all_scopes
docstring: Get all block-local scopes from an IR.
docstring_summary: Get all block-local scopes from an IR.
docstring_tokens: Get all block - local scopes from an IR .
function: def _get_all_scopes(blocks):
      """Get all block-local scopes from an IR.
      """
      all_scopes = []
      for label, block in blocks.items():
          if not (block.scope in all_scopes):
              all_scopes.append(block.scope)
      return all_scopes
function_tokens: def _get_all_scopes ( blocks ) : all_scopes = [ ] for label , block in blocks . items ( ) : if not ( block . scope in all_scopes ) : all_scopes . append ( block . scope ) return all_scopes