def copy_and_tag(variable, brick, call, role, application_name, name):
 copy = variable.copy()
 copy.name = _variable_name(brick.name, application_name, name)
 add_annotation(copy, brick)
 add_annotation(copy, call)
 copy.tag.name = name
 add_role(copy, role)
 return copy

def copy_and_tag ( variable , brick , call , role , application_name , name ) : copy = variable . copy ( ) copy . name = _variable_name ( brick . name , application_name , name ) add_annotation ( copy , brick ) add_annotation ( copy , call ) copy . tag . name = name add_role ( copy , role ) return copy
helper method to copy a variable and annotate it .