code: def heightmap_set_value(hm: np.ndarray, x: int, y: int, value: float) -> None:
      
      if hm.flags["C_CONTIGUOUS"]:
          warnings.warn(
              "Assign to this heightmap with hm[i,j] = value\n"
              "consider using order='F'",
              DeprecationWarning,
              stacklevel=2,
          )
          hm[y, x] = value
      elif hm.flags["F_CONTIGUOUS"]:
          warnings.warn(
              "Assign to this heightmap with hm[x,y] = value",
              DeprecationWarning,
              stacklevel=2,
          )
          hm[x, y] = value
      else:
          raise ValueError("This array is not contiguous.")
docs: Set the value of a point on a heightmap.
  
      .. deprecated:: 2.0
          `hm` is a NumPy array, so values should be assigned to it directly.