docstr: Start the right viewer based on file format and platform.
docstr_tok: ["Start","the","right","viewer","based","on","file","format","and","platform","."]
code: def _view(self, filepath, format, quiet):
      """Start the right viewer based on file format and platform."""
      methodnames = [
          f"_view_{format}_{backend.PLATFORM}",
          f"_view_{backend.PLATFORM}",
      ]
      for name in methodnames:
          view_method = getattr(self, name, None)
          if view_method is not None:
              break
      else:
          raise RuntimeError(
              f"{self.__class__!r} has no built-in viewer"
              f" support for {format!r}"
              f" on {backend.PLATFORM!r} platform"
          )
      view_method(filepath, quiet=quiet)
  
imports: import codecs
  import locale
  import logging
  import os
  from .None import backend
  from .None import tools
label_desc: Use image node_id 11 for calling the File obj's underlying member method code with example usage: obj._view(filepath, format, quiet) without return types