(self, *args, **kwargs)
| 21 | """ |
| 22 | |
| 23 | def execute_on_main_process(self, *args, **kwargs): |
| 24 | if getattr(self, 'main_process_only', False): |
| 25 | if is_main_process(): |
| 26 | return function(self, *args, **kwargs) |
| 27 | else: |
| 28 | return do_nothing(self, *args, **kwargs) |
| 29 | else: |
| 30 | return function(self, *args, **kwargs) |
| 31 | |
| 32 | return execute_on_main_process |
| 33 |
nothing calls this directly
no test coverage detected