code: def model_observation_dtype_casting():
      """
      Model at the source of the following issue: https://github.com/pymc-devs/pymc/issues/5795
      """
      with pm.Model() as model:
          data = pm.ConstantData("data", [0, 0, 1, 1], dtype=int)
          p = pm.Beta("p", 1, 1)
          bern = pm.Bernoulli("response", p, observed=data)
  
      compute_graph = {
          "p": set(),
          "response": {"p"},
          "data": {"response"},
      }
      plates = {"": {"p"}, "4": {"data", "response"}}
  
      return model, compute_graph, plates
  
imports: import warnings
  import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  from pytensor.compile.sharedvalue import SharedVariable
  from pytensor.tensor.variable import TensorConstant
  import pymc
  from pymc.exceptions import ImputationWarning
  from pymc.model_graph import ModelGraph, model_to_graphviz, model_to_networkx
label_desc: Use image node_id 6 for calling a global function with example usage: model_observation_dtype_casting() and returns: model,  compute_graph,  plates