docs: def to_0d_object_array(value: Any) -> np.ndarray:
      """Given a value, wrap it in a 0-D numpy.ndarray with dtype=object.
      """
      result = np.empty((), dtype=object)
      result[()] = value
      return result