code: def get_tan_media(self, media_type = TANMediaType2.ALL, media_class = TANMediaClass4.ALL):
          
  
          with self._get_dialog() as dialog:
              hktab = self._find_highest_supported_command(HKTAB4, HKTAB5)
  
              seg = hktab(
                  tan_media_type = media_type,
                  tan_media_class = str(media_class),
              )
  
              response = dialog.send(seg)
  
              for resp in response.response_segments(seg, 'HITAB'):
                  return resp.tan_usage_option, list(resp.tan_media_list)
docs: Get information about TAN lists/generators.
  
          Returns tuple of fints.formals.TANUsageOption and a list of fints.formals.TANMedia4 or fints.formals.TANMedia5 objects.