code: def FilePattern(pattern, settings, **kwargs):
      
      url = _urlparse(pattern)
      if url.scheme == 'gs':
          return GoogleStorageFilePattern(pattern, settings, **kwargs)
      else:
          assert url.scheme == 'file'
          return LocalFilePattern(pattern, settings, **kwargs)
docs: Factory method returns LocalFilePattern or GoogleStorageFilePattern