def METHOD_NAME(self):
    import networks
    if shared.opts.lora_preferred_name == "Filename" or self.alias.lower() in networks.forbidden_network_aliases:
        return self.name
    else:
        return self.alias