class_docstr: 1-dimensional grid-world implementation with 3 possible movement actions ("LEFT", "STAY", "RIGHT")
code: def render(self, title=None):
      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 DGridWorldEnv obj's underlying member method code with example usage: obj.render(title) without return types