Builds the code block for the GPTool UpdateParameter method based on the input task_params.

    :param task_params: A list of task parameters from the task info structure.
    :return: A string representing the code block to the GPTool UpdateParameter method.

def create_update_parameter(task_params, parameter_map):
    """
    Builds the code block for the GPTool UpdateParameter method based on the input task_params.

    :param task_params: A list of task parameters from the task info structure.
    :return: A string representing the code block to the GPTool UpdateParameter method.
    """
    gp_params = []
    for param in task_params:
        if param['direction'].upper() == 'OUTPUT':
            continue

        # Convert DataType
        data_type = param['type'].upper()
        if 'dimensions' in param:
            data_type += 'ARRAY'

        if data_type in parameter_map:
            gp_params.append(parameter_map[data_type].update_parameter().substitute(param))

    return ''.join(gp_params)