code: def file_matches_extensions(self, fname, extensions):
          
          if not isinstance(extensions, list):
              extensions = [extensions]
          for ext in extensions:
              if fname.endswith('.%s' % ext):
                  return True
          return False
docs: True if file matches one of extensions
          :param fname:
          :param extensions:
          :return: