docs: def import_transcript_from_fs(edx_video_id, language_code, file_name, provider, resource_fs, static_dir):
      """
      Imports transcript file from file system and creates transcript record in DS.
  
      Arguments:
          edx_video_id (str): Video id of the video.
          language_code (unicode): Language code of the requested transcript.
          file_name (unicode): File name of the transcript file.
          provider (unicode): Transcript provider.
          resource_fs (OSFS): Import file system.
          static_dir (str): The Directory to retrieve transcript file.
      """
      file_format = None
      transcript_data = get_video_transcript_data(edx_video_id, language_code)
  
      # First check if transcript record does not exist.
      if not transcript_data:
          # Read file from import file system and attach it to transcript record in DS.
          try:
              with resource_fs.open(combine(static_dir, file_name), 'rb') as f:
                  file_content = f.read()
                  file_content = file_content.decode('utf-8-sig')
          except ResourceNotFound as exc:
              # Don't raise exception in case transcript file is not found in course OLX.
              logger.warn(
                  '[edx-val] "%s" transcript "%s" for video "%s" is not found.',
                  language_code,
                  file_name,
                  edx_video_id
              )
              return
          except UnicodeDecodeError:
              # Don't raise exception in case transcript contains non-utf8 content.
              logger.warn(
                  '[edx-val] "%s" transcript "%s" for video "%s" contains a non-utf8 file content.',
                  language_code,
                  file_name,
                  edx_video_id
              )
              return
  
          # Get file format from transcript content.
          try:
              file_format = get_transcript_format(file_content)
          except Error as ex:
              # Don't raise exception, just don't create transcript record.
              logger.warn(
                  '[edx-val] Error while getting transcript format for video=%s -- language_code=%s --file_name=%s',
                  edx_video_id,
                  language_code,
                  file_name
              )
              return
  
          # Create transcript record.
          create_video_transcript(
              video_id=edx_video_id,
              language_code=language_code,
              file_format=file_format,
              content=ContentFile(file_content),
              provider=provider
          )