function prepareInputMap(inputs, inputType, network) {
  // Sequence we can use as-is
  if (inputType === 'sequence') { return inputs; }
  // We can turn a map to a sequence by wrapping it in an array
  if (inputType === 'map') { return [inputs]; }
  // Simple inputs need to be converted to a sequence
  let inPort = Object.keys(network.graph.inports)[0];
  if (!inPort) {
    return {};
  }
  // If we have a port named "IN", send to that
  if (network.graph.inports.in) {
    inPort = 'in';
  }
  /** @type {InputMap} */
  const map = {};
  map[inPort] = inputs;
  return [map];
}
@param {any} inputs
@param {string} inputType
@param {Network} network
@returns {InputMap}