<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_role(self, role_name, role_type, host_id):
 """ Create a role. @param role_name: Role name @param role_type: Role type @param host_id: ID of the host to assign the role to @return: An ApiRole object """

    return roles.create_role(self._get_resource_root(), self.name, role_type,
        role_name, host_id, self._get_cluster_name())