class C: def method(self): print(f'{my_function()}')