<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_universe(self, as_str=False):
 """Returns universe the client is connected to. See ``Universe``. :param bool as_str: Return human-friendly universe name instead of an ID. :rtype: int|str """

        result = self._iface.get_connected_universe()

        if as_str:
            return Universe.get_alias(result)

        return result