class_docstr: Base file handler.
class_docstr_tok: ["Base","file","handler","."]
docstr: Match file handler's type to this dataset's file type.
  
  Args:
      ds_ftype (str or list): File type or list of file types that a
          dataset is configured to be loaded from.
  
  Returns:
      ``True`` if this file handler object's type matches the
      dataset's file type(s), ``None`` otherwise. ``None`` is returned
      instead of ``False`` to follow the convention of the
      :meth:`available_datasets` method.
docstr_tok: ["Match","file","handler","'s","type","to","this","dataset","'s","file","type",".","Args",":","ds_ftype","(","str","or","list",")",":","File","type","or","list","of","file","types","that","a","dataset","is","configured","to","be","loaded","from",".","Returns",":","``","True","``","if","this","file","handler","object","'s","type","matches","the","dataset","'s","file","type","(","s",")",",","``","None","``","otherwise",".","``","None","``","is","returned","instead","of","``","False","``","to","follow","the","convention","of","the",":","meth",":","`","available_datasets","`","method","."]
code: def file_type_matches(self, ds_ftype):
      """Match file handler's type to this dataset's file type.
  
      Args:
          ds_ftype (str or list): File type or list of file types that a
              dataset is configured to be loaded from.
  
      Returns:
          ``True`` if this file handler object's type matches the
          dataset's file type(s), ``None`` otherwise. ``None`` is returned
          instead of ``False`` to follow the convention of the
          :meth:`available_datasets` method.
  
      """
      if not isinstance(ds_ftype, (list, tuple)):
          ds_ftype = [ds_ftype]
      if self.filetype_info["file_type"] in ds_ftype:
          return True
      return None
  
imports: import numpy
  import xarray
  from pyresample.geometry import SwathDefinition
  from satpy.dataset import combine_metadata
  from satpy.readers import open_file_or_filename
label_desc: Use image node_id 14 for calling the BaseFileHandler obj's underlying member method code with example usage: obj.file_type_matches(ds_ftype) and returns: None, True