code: func (s *Scope) ExpandBlock(body hcl.Body, schema *configschema.Block) (hcl.Body, tfdiags.Diagnostics) {
  	spec := schema.DecoderSpec()
  
  	traversals := dynblock.ExpandVariablesHCLDec(body, spec)
  	refs, diags := References(traversals)
  
  	ctx, ctxDiags := s.EvalContext(refs)
  	diags = diags.Append(ctxDiags)
  
  	return dynblock.Expand(body, ctx), diags
  }
docs: // ExpandBlock expands any "dynamic" blocks present in the given body. The
  // result is a body with those blocks expanded, ready to be evaluated with
  // EvalBlock.
  //
  // If the returned diagnostics contains errors then the result may be
  // incomplete or invalid.