<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def print_graph(self, format: str = 'turtle') -> str: """ prints serialized formated rdflib Graph """

        print(self.g.serialize(format=format).decode('utf-8'))