function asCallback(component, options) {
  const promised = asPromise(component, options);
  return (inputs, callback) => {
    promised(inputs)
      .then((output) => {
        callback(null, output);
      }, callback);
  };
}
@param {AsCallbackComponent} component - Graph or component to load
@param {AsCallbackOptions} options
@returns {NetworkAsCallback}