@property
    def media_content_type(self):
        if self.session is None:
            return None
        media_type = self.session.type
        if media_type == 'episode':
            return MEDIA_TYPE_TVSHOW
        elif media_type == 'movie':
            return MEDIA_TYPE_VIDEO
        return None
Write the function code and the filename to a file.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/media_player/plex.py/PlexClient.media_content_type--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/externals/joblib/memory.py/MemorizedFunc._write_func_code