code: def _parse_resolution(res):
          
          if isinstance(res, str):
              return float(res.strip('m'))
          if isinstance(res, (int, float)):
              return float(res)
  
          raise TypeError('Resolution should be a float, got resolution of type {}'.format(type(res)))
docs: Helper method for parsing given resolution. It will also try to parse a string into float
  
          :return: A float value of resolution
          :rtype: float