code: def remote_service_name(relid=None):
      
      if relid is None:
          unit = remote_unit()
      else:
          units = related_units(relid)
          unit = units[0] if units else None
      return unit.split('/')[0] if unit else None
docs: The remote service name for a given relation-id (or the current relation)