<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def alias(self, name, alias_to, path=KISSmetrics.ALIAS_PATH, resp=False):
 """Map `name` to `alias_to`; actions done by one resolve to other. :param name: consider as same individual as ``alias_to`` :param alias_to: consider an alias of ``name`` :param path: endpoint path; defaults to ``KISSmetrics.ALIAS_PATH`` :param resp: indicate whether to return response :type resp: boolean :returns: an HTTP response for request if `resp=True` :rtype: `urllib3.response.HTTPResponse` :raises: Exception if either `identity` or `key` not set """

        self.check_init()
        response = self.client.alias(person=name, identity=alias_to, path=path)
        if resp:
            return response