code: def create_transcript_file(video_id, language_code, file_format, resource_fs, static_dir):
      
      transcript_filename = '{video_id}-{language_code}.srt'.format(
          video_id=video_id,
          language_code=language_code
      )
      transcript_data = get_video_transcript_data(video_id, language_code)
      if transcript_data:
          transcript_content = Transcript.convert(
              transcript_data['content'],
              input_format=file_format,
              output_format=Transcript.SRT
          )
          create_file_in_fs(transcript_content, transcript_filename, resource_fs, static_dir)
  
      return transcript_filename
docs: Writes transcript file to file system.
  
      Arguments:
          video_id (str): Video id of the video transcript file is attached.
          language_code (str): Language code of the transcript.
          file_format (str): File format of the transcript file.
          static_dir (str): The Directory to store transcript file.
          resource_fs (SubFS): The file system to store transcripts.