You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: iam.go
    path of file: ./repos/trivy/pkg/iac/providers/aws/iam
    
    the code of the file until where you have to start completion: package iam

import (
	"github.com/liamg/iamgo"

	iacTypes "github.com/aquasecurity/trivy/pkg/iac/types"
)

type IAM struct {
	PasswordPolicy     PasswordPolicy
	Policies           []Policy
	Groups             []Group
	Users              [
    
func (d Document) MetadataFromIamGo(r ...iamgo.Range) iacTypes.Metadata {
	m := d.Metadata
	if d.HasRefs {
		return m
	}
	newRange := m.Range()
	var start int
	if !d.IsOffset {
		start = newRange.GetStartLine()
	}
	for _, rng := range r {
		newRange := iacTypes.NewRange(
			newRange.GetLocalFilename(),
			start+rng.StartLine,
			start+rng.EndLine,
			newRange.GetSourcePrefix(),
			newRange.GetFS(),
		)
		m = iacTypes.NewMetadata(newRange, m.Reference()).WithParent(m)
	}
	return m
}