def instruction_to_svg_dict(self, instruction_or_id, copy_result=True):
instruction_id = self.get_instruction_id(instruction_or_id)<EOL>if instruction_id in self._cache:<EOL><INDENT>result = self._cache[instruction_id]<EOL><DEDENT>else:<EOL><INDENT>result = self._instruction_to_svg_dict(instruction_id)<EOL>self._cache[instruction_id] = result<EOL><DEDENT>if copy_result:<EOL><INDENT>result = deepcopy(result)<EOL><DEDENT>return result<EOL>
Return the SVG dict for the SVGBuilder.

        :param instruction_or_id: the instruction or id, see
          :meth:`get_instruction_id`
        :param bool copy_result: whether to copy the result
        :rtype: dict

        The result is cached.