def METHOD_NAME(self, external_address: str) -> str:
    if external_address in self._curr_external_addresses:
        # local address, use dummy address
        return self._local_mapping.get(external_address)
    # try to lookup inner address from address mapping
    return self._mapping.get(external_address)