code: func ValidateMetadataFile(filePathName string, fileBytes []byte) error {
  	// Get the validator handler for the metadata directory
  	fileValidator := selectFileValidator(filePathName)
  
  	// If there is no validator handler for metadata directory, return UnhandledDirectoryError
  	if fileValidator == nil {
  		return &UnhandledDirectoryError{buildMetadataFileErrorMessage(filePathName)}
  	}
  
  	// If the file is not valid for the given directory-based validator, return the corresponding error
  	err := fileValidator(filePathName, fileBytes)
  	if err != nil {
  		return err
  	}
  
  	// file is valid, return nil error
  	return nil
  }
docs: // ValidateMetadataFile checks that metadata files are valid
  // according to the validation rules of the file's directory