def _ChooseTaskName(self, app_name, queue_name, user_chosen=None):
    """ Creates a task name that the system can use to address
        tasks from different apps and queues.
 
    Args:
      app_name: The application name.
      queue_name: A str representing the queue name that the task goes in.
      user_chosen: A string name the user selected for their application.
    Returns:
      A randomized string representing a task name.
    """
    RAND_LENGTH_SIZE = 32
    if not user_chosen:
      user_chosen = ''.join(random.choice(string.ascii_uppercase + \
        string.digits) for x in range(RAND_LENGTH_SIZE))
    return 'task_%s_%s_%s' % (app_name, queue_name, user_chosen)
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/taskqueue/taskqueue_distributed.py/TaskQueueServiceStub._ChooseTaskName/original