def _ProcessRootContext(self, root_context):

    assert root_context.type is ecmametadatapass.EcmaContext.ROOT

    # Process aliases in statements in the root scope for goog.module-style
    # aliases.
    global_alias_map = {}
    for context in root_context.children:
      if context.type == ecmametadatapass.EcmaContext.STATEMENT:
        for statement_child in context.children:
          if statement_child.type == ecmametadatapass.EcmaContext.VAR:
            match = scopeutil.MatchModuleAlias(statement_child)
            if match:
              # goog.require aliases cannot use further aliases, the symbol is
              # the second part of match, directly.
              symbol = match[1]
              if scopeutil.IsInClosurizedNamespace(symbol,
                                                   self._closurized_namespaces):
                global_alias_map[match[0]] = symbol

    # Process each block to find aliases.
    for context in root_context.children:
      self._ProcessBlock(context, global_alias_map)
return the correct class for resampling with groupby
dataset/ETHPy150Open google/closure-linter/closure_linter/aliaspass.py/AliasPass._ProcessRootContext--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/tseries/resample.py/Resampler._get_resampler_for_grouping