code: def map_gid(self, tiled_gid):
          
          try:
              return self.gidmap[int(tiled_gid)]
          except KeyError:
              return None
          except TypeError:
              msg = "GIDs must be an integer"
              logger.debug(msg)
              raise TypeError
docs: Used to lookup a GID read from a TMX file's data
  
          :param tiled_gid: GID that is found in TMX data
          :rtype: (GID, flags) for the the GID passed, None if not found