<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fully_qualify_alias_labels(label, aliases):
 """Replace any aliases in label with the fully qualified name. Args: label -- A label : str representing a name (e.g. myos.system) aliases -- A dict of {alias: real_name} (e.g. {'myos': 'os'}) 'os.mycall' """

    for alias, full_name in aliases.items():
        if label == alias:
            return full_name
        elif label.startswith(alias+'.'):
            return full_name + label[len(alias):]
    return label