def _GetAliasForIdentifier(identifier, alias_map):
  ns = identifier.split('.', 1)[0]
  aliased_symbol = alias_map.get(ns)
  if aliased_symbol:
    return aliased_symbol + identifier[len(ns):]
Returns the aliased_symbol name for an identifier.
dataset/ETHPy150Open google/closure-linter/closure_linter/aliaspass.py/_GetAliasForIdentifier