def media_play_pause(self):
        if self._playing:
            self.media_pause()
        else:
            self.media_play()
Subclasses can override this to add custom data input code.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/media_player/panasonic_viera.py/PanasonicVieraTVDevice.media_play_pause--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/bulkloader.py/Loader.generate_records