def media_play_pause(self):
        if self.state == STATE_PLAYING:
            self.media_pause()
        else:
            self.media_play()
Calls the method described by a given method descriptor.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/media_player/__init__.py/MediaPlayerDevice.media_play_pause--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/net/proto2/python/public/service_reflection.py/_ServiceBuilder._CallMethod