def METHOD_NAME(self, event):
    if "globals" in event:
        self.show_globals(event["globals"], "__main__")
    else:
        # MicroPython
        get_runner().send_command(InlineCommand("get_globals", module_name="__main__"))