code: def tilequeue_tile_status(cfg, peripherals, args):
      
      logger = make_logger(cfg, 'tile_status')
  
      # friendly warning to avoid confusion when this command outputs nothing
      # at all when called with no positional arguments.
      if not args.coords:
          logger.warning('No coordinates given on the command line.')
          return
  
      # pre-load TOI to avoid having to do it for each coordinate
      toi = None
      if peripherals.toi:
          toi = peripherals.toi.fetch_tiles_of_interest()
  
      # TODO: make these configurable!
      tile_format = lookup_format_by_extension('zip')
      store = _make_store(cfg)
  
      for coord_str in args.coords:
          coord = deserialize_coord(coord_str)
  
          # input checking! make sure that the coordinate is okay to use in
          # the rest of the code.
          if not coord:
              logger.warning('Could not deserialize %r as coordinate', coord_str)
              continue
  
          if not coord_is_valid(coord):
              logger.warning('Coordinate is not valid: %r (parsed from %r)',
                             coord, coord_str)
              continue
  
          # now we think we probably have a valid coordinate. go look up
          # whether it exists in various places.
  
          logger.info("=== %s ===", coord_str)
          coord_int = coord_marshall_int(coord)
  
          if peripherals.inflight_mgr:
              is_inflight = peripherals.inflight_mgr.is_inflight(coord)
              logger.info('inflight: %r', is_inflight)
  
          if toi:
              in_toi = coord_int in toi
              logger.info('in TOI: %r' % (in_toi,))
  
          data = store.read_tile(coord, tile_format)
          logger.info('tile in store: %r', bool(data))
docs: Report the status of the given tiles in the store, queue and TOI.