function createBatchTable(collection, context) {
  if (defined(collection._batchTable)) {
    collection._batchTable.destroy();
  }

  const attributes = [
    {
      functionName: "batchTable_getWidthAndShow",
      componentDatatype: ComponentDatatype.UNSIGNED_BYTE,
      componentsPerAttribute: 2,
    },
    {
      functionName: "batchTable_getPickColor",
      componentDatatype: ComponentDatatype.UNSIGNED_BYTE,
      componentsPerAttribute: 4,
      normalize: true,
    },
    {
      functionName: "batchTable_getCenterHigh",
      componentDatatype: ComponentDatatype.FLOAT,
      componentsPerAttribute: 3,
    },
    {
      functionName: "batchTable_getCenterLowAndRadius",
      componentDatatype: ComponentDatatype.FLOAT,
      componentsPerAttribute: 4,
    },
    {
      functionName: "batchTable_getDistanceDisplayCondition",
      componentDatatype: ComponentDatatype.FLOAT,
      componentsPerAttribute: 2,
    },
  ];

  collection._batchTable = new BatchTable(
    context,
    attributes,
    collection._polylines.length,
  );
}
Returns the polyline in the collection at the specified index.  Indices are zero-based
and increase as polylines are added.  Removing a polyline shifts all polylines after
it to the left, changing their indices.  This function is commonly used with
{@link PolylineCollection#length} to iterate over all the polylines
in the collection.

@param {number} index The zero-based index of the polyline.
@returns {Polyline} The polyline at the specified index.

@performance If polylines were removed from the collection and
{@link PolylineCollection#update} was not called, an implicit <code>O(n)</code>
operation is performed.

@exception {DeveloperError} This object was destroyed, i.e., destroy() was called.

@example
// Toggle the show property of every polyline in the collection
const len = polylines.length;
for (let i = 0; i < len; ++i) {
  const p = polylines.get(i);
  p.show = !p.show;
}

@see PolylineCollection#length