code: def add_file_extension(filename, data_format=None, remove_path=False):
          
          if data_format is None:
              data_format = AwsConstants.AWS_FILES[filename]
          if remove_path:
              filename = filename.split('/')[-1]
          if filename.startswith('datastrip'):
              filename = filename.replace('*', '0')
          if data_format is MimeType.RAW:
              return filename
          return '{}.{}'.format(filename.replace('*', ''), data_format.value)
docs: Joins filename and corresponding file extension if it has one.
  
          :param filename: Name of the file without extension
          :type filename: str
          :param data_format: format of file, if None it will be set automatically
          :type data_format: constants.MimeType or None
          :param remove_path: True if the path in filename string should be removed
          :type remove_path: bool
          :return: Name of the file with extension
          :rtype: str