function create(type, attrs) {
  var Type = types[type];
  if (!Type) {
    throw new Error('unknown type: <' + type + '>');
  }
  return assign(new Type(), attrs);
}
Creates a label.

@example

```javascript
import * as Model from 'diagram-js/lib/model';

const label = Model.create('label', {
  x: 100,
  y: 100,
  width: 100,
  height: 100,
  labelTarget: shape
});
```

@param {'label'} type
@param {Object} [attrs]

@return {Label}