code: def is_dogmatic(a):
      if isinstance(a, (DogmaticDict, DogmaticList)):
          return True
      elif isinstance(a, dict):
          return any(is_dogmatic(v) for v in a.values())
      elif isinstance(a, (list, tuple)):
          return any(is_dogmatic(v) for v in a)
  
imports: import pytest
  import sacred.optional
  from sacred.config.config_scope import ConfigScope, dedent_function_body, dedent_line, get_function_body, is_empty_or_comment
  from sacred.config.custom_containers import DogmaticDict, DogmaticList
label_desc: Use image node_id 10 for calling a global function with example usage: is_dogmatic(a) and returns: True, any, any