def __init__(self, domain=None, dependencies=None, setup=None,
                 requirements=None, config_schema=None, platform_schema=None):
        self.DOMAIN = domain
        self.DEPENDENCIES = dependencies or []
        self.REQUIREMENTS = requirements or []

        if config_schema is not None:
            self.CONFIG_SCHEMA = config_schema

        if platform_schema is not None:
            self.PLATFORM_SCHEMA = platform_schema

        # Setup a mock setup if none given.
        if setup is None:
            self.setup = lambda hass, config: True
        else:
            self.setup = setup
add_gradients_summary.
dataset/ETHPy150Open home-assistant/home-assistant/tests/common.py/MockModule.__init__--crossover with--dataset/ETHPy150Open tflearn/tflearn/tflearn/summaries.py/add_gradients_summary