<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def render(self, namespace):
        '''Render template lines.

        Note: we only need to parse the namespace if we used variables in
              this part of the template.
        '''
        return self._text.format_map(namespace.dictionary) \
            if self._need_format else self._text