<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def translate_alias(self, alias, namespace=None, target_namespaces=None, translate_ncbi_namespace=None):
 """given an alias and optional namespace, return a list of all other aliases for same sequence """


        if translate_ncbi_namespace is None:
            translate_ncbi_namespace = self.translate_ncbi_namespace
        seq_id = self._get_unique_seqid(alias=alias, namespace=namespace)
        aliases = self.aliases.fetch_aliases(seq_id=seq_id,
                                             translate_ncbi_namespace=translate_ncbi_namespace)
        if target_namespaces:
            aliases = [a for a in aliases if a["namespace"] in target_namespaces]
        return aliases