class_docstr: 2-dimensional grid-world implementation with 5 actions (the 4 cardinal directions and staying put).
docstr: Creates a heatmap showing the current position of the agent in the grid world.
  
  Parameters
  ----------
  title: ``str`` or ``None``
      Optional title for the heatmap.
docstr_tok: ["Creates","a","heatmap","showing","the","current","position","of","the","agent","in","the","grid","world",".","Parameters","--","--","--","--","--","title",":","``","str","``","or","``","None","``","Optional","title","for","the","heatmap","."]
code: def render(self, title=None):
      """
      Creates a heatmap showing the current position of the agent in the grid world.
  
      Parameters
      ----------
      title: ``str`` or ``None``
          Optional title for the heatmap.
      """
      values = np.zeros(self.shape)
      values[self.position] = 1.0
      _, ax = plt.subplots(figsize=(3, 3))
      if self.shape[0] == 1 or self.shape[1] == 1:
          ax.imshow(values, cmap="OrRd")
      else:
          _ = sns.heatmap(
              values, cmap="OrRd", linewidth=2.5, cbar=False, ax=ax
          )
      plt.xticks(range(self.shape[1]))
      plt.yticks(range(self.shape[0]))
      if title != None:
          plt.title(title)
      plt.show()
  
imports: import numpy
  import matplotlib.pyplot
  import seaborn
  from pymdp.envs import Env
label_desc: Use image node_id 5 for calling the GridWorldEnv obj's underlying member method code with example usage: obj.render(title) without return types