code: func (m *Meta) loadSingleModule(dir string) (*configs.Module, tfdiags.Diagnostics) {
  	var diags tfdiags.Diagnostics
  	dir = m.normalizePath(dir)
  
  	loader, err := m.initConfigLoader()
  	if err != nil {
  		diags = diags.Append(err)
  		return nil, diags
  	}
  
  	module, hclDiags := loader.Parser().LoadConfigDir(dir)
  	diags = diags.Append(hclDiags)
  	return module, diags
  }
docs: // loadSingleModule reads configuration from the given directory and returns
  // a description of that module only, without attempting to assemble a module
  // tree for referenced child modules.
  //
  // Most callers should use loadConfig. This method exists to support early
  // initialization use-cases where the root module must be inspected in order
  // to determine what else needs to be installed before the full configuration
  // can be used.