code: def fully_qualify_alias_labels(label, aliases):
      
      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
docs: 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'})
  
      >>> fully_qualify_alias_labels('myos.mycall', {'myos':'os'})
      'os.mycall'