<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getErrorComponent(result, tag):
 """get total error contribution for component with specific tag"""

    return math.sqrt(sum(
        (error*2)**2
        for (var, error) in result.error_components().items()
        if var.tag == tag
    ))