code: def assert_multimeasure_not_broadcasted(measurements, broadcast):
      """Assert that there are not simultaneously multiple measurements and
      broadcasting activated.Otherwise raises an error."""
      if broadcast and len(measurements) > 1:
          raise NotImplementedError(
              "Broadcasting with multiple measurements is not supported yet. "
              f"Set broadcast to False instead. The tape measurements are {measurements}."
          )
  
imports: from functools import partial
  import warnings
  import pennylane
  from pennylane.transforms.tape_expand import expand_invalid_trainable
  from pennylane.measurements import MutualInfoMP, StateMP, VarianceMP, VnEntropyMP, ProbabilityMP
label_desc: Use image node_id 1 for calling a global function with example usage: assert_multimeasure_not_broadcasted(measurements, broadcast) without return types