#NEWLINE# def register_load_method( self , load_method , config_section_name = None , priority = 0 , **kwargs ) : #NEWLINE# #INDENT# "Used by system components, plugins, etc. to register themselves with\n        the Mode Controller for anything they need a mode to do when it's\n        registered.\n\n        Args:\n            load_method: The method that will be called when this mode code\n                loads.\n            config_section_name: An optional string for the section of the\n                configuration file that will be passed to the load_method when\n                it's called.\n            priority: Int of the relative priority which allows remote methods\n                to be called in a specific order. Default is 0. Higher values\n                will be called first.\n            **kwargs: Any additional keyword arguments specified will be passed\n                to the load_method.\n\n        Note that these methods will be called once, when the mode code is first\n        initialized during the MPF boot process.\n\n        " #NEWLINE# self . loader_methods . append ( RemoteMethod ( method = kwargs , config_section = config_section_name , kwargs = kwargs , priority = priority ) )