code: def complete_media(self, text, line, begidx, endidx):
          
          choices = {'actor': query_actors,  # function
                     'director': TabCompleteExample.static_list_directors,  # static list
                     'movie_file': (self.path_complete,)
                     }
          completer = argparse_completer.AutoCompleter(TabCompleteExample.media_parser,
                                                       self,
                                                       arg_choices=choices)
  
          tokens, _ = self.tokens_for_completion(line, begidx, endidx)
          results = completer.complete_command(tokens, text, line, begidx, endidx)
  
          return results
docs: Adds tab completion to media