def __init__(self, __task_type, **kwargs):
self.name = __task_type + '<STR_LIT:_>' + str(uuid.uuid4())[:<NUM_LIT:8>]<EOL>self.name = self.name.replace('<STR_LIT::>','<STR_LIT:_>')  <EOL>self.type = __task_type<EOL>task_registry = TaskRegistry()<EOL>self.definition = task_registry.get_definition(__task_type)<EOL>self.domain = self.definition.get('<STR_LIT>', [{'<STR_LIT>': {}}])[<NUM_LIT:0>]['<STR_LIT>'].get('<STR_LIT>', '<STR_LIT:default>')<EOL>self._timeout = self.definition['<STR_LIT>'].get('<STR_LIT>')<EOL>self.inputs = Inputs(self.input_ports, task=self)<EOL>self.outputs = Outputs(self.output_ports, self.name)<EOL>self.batch_values = None<EOL>self._impersonation_allowed = None<EOL>self.set(**kwargs)<EOL>
Construct an instance of GBDX Task

Args:
    __task_type: name of the task
    **kwargs: key=value pairs for inputs to set on the task

Returns:
    An instance of Task.