code: public Metadata createMetadata(String typeName, Metadata metadata) {
          String scope = Metadata.scopeBasedOnType(typeName);
          return this.createMetadata(typeName, scope, metadata);
      }
docs: Creates metadata on this file in the specified template type.
  
  @param typeName the metadata template type name.
  @param metadata the new metadata values.
  @return the metadata returned from the server.