code: def test_given_dataframe_with_object_dtype_using_pandas_v2_when_compute_data_from_noise_then_does_not_raise_error():
      X0 = np.random.choice(2, 10)
      X1 = X0 + np.random.normal(0, 1, 10)
  
      data = pd.DataFrame({"X0": X0, "X1": X1}, dtype=object)
  
      causal_model = InvertibleStructuralCausalModel(
          nx.DiGraph([("X0", "X1")])
      )
      assign_causal_mechanisms(causal_model, data)
      fit(causal_model, data)
  
      # This caused an error before with pandas > 2.0
      compute_noise_from_data(causal_model, data.iloc[0:1])
  
file_path: dowhy/tests/gcm/test_noise.py
imports: import networkx
  import numpy
  import pandas
  from _pytest.python_api import approx
  from flaky import flaky
  from dowhy.gcm import AdditiveNoiseModel, EmpiricalDistribution, InvertibleStructuralCausalModel, StructuralCausalModel, fit
  from dowhy.gcm._noise import compute_data_from_noise, compute_noise_from_data, get_noise_dependent_function
  from dowhy.gcm.auto import assign_causal_mechanisms
  from dowhy.gcm.causal_models import PARENTS_DURING_FIT
  from dowhy.gcm.ml import create_linear_regressor, create_linear_regressor_with_given_parameters, create_logistic_regression_classifier
  from dowhy.graph import DirectedGraph, get_ordered_predecessors
label_desc: Use image node_id 7 for calling a global function with example usage: test_given_dataframe_with_object_dtype_using_pandas_v2_when_compute_data_from_noise_then_does_not_raise_error() without return types