code: def test_invalid_flavors(self):
      with pytest.raises(ValueError, match="Passing both"):
          pm.Normal.dist(0, 1, shape=(3,), size=(3,))
  
imports: import re
  import warnings
  import numpy
  import pytensor
  import pytest
  from pytensor import tensor
  from pytensor.compile.mode import Mode
  from pytensor.graph import Constant, ancestors
  from pytensor.tensor import TensorVariable
  from pytensor.tensor.random import normal
  from pytensor.tensor.shape import SpecifyShape
  import pymc
  from pymc import ShapeError
  from pymc.distributions.shape_utils import broadcast_dist_samples_shape, change_dist_size, convert_dims, convert_shape, convert_size, get_support_shape, get_support_shape_1d, rv_size_is_none, to_tuple
  from pymc.model import Model
label_desc: Use image node_id 17 for calling the TestSizeShapeDimsObserved obj's underlying member method code with example usage: obj.test_invalid_flavors() without return types