code: func (ps *ProviderSchema) SchemaForResourceType(mode addrs.ResourceMode, typeName string) (schema *configschema.Block, version uint64) {
  	switch mode {
  	case addrs.ManagedResourceMode:
  		return ps.ResourceTypes[typeName], ps.ResourceTypeSchemaVersions[typeName]
  	case addrs.DataResourceMode:
  		// Data resources don't have schema versions right now, since state is discarded for each refresh
  		return ps.DataSources[typeName], 0
  	default:
  		// Shouldn't happen, because the above cases are comprehensive.
  		return nil, 0
  	}
  }
docs: // SchemaForResourceType attempts to find a schema for the given mode and type.
  // Returns nil if no such schema is available.