code: def __init__(self, collection, transform=None, viewport=None):
      vertex = collection._vertex
      fragment = collection._fragment
      program = gloo.Program(vertex, fragment)
  
      #        if "transform" in program.hooks and transform is not None:
      #            program["transform"] = transform
      #        if "viewport" in program.hooks and viewport is not None:
      #            program["viewport"] = viewport
  
      program.bind(collection._vertices_buffer)
      for name in collection._uniforms.keys():
          program[name] = collection._uniforms[name]
  
      collection._programs.append(program)
      self._program = program
      self._collection = collection
  
file_path: vispy/vispy/visuals/collections/collection.py
imports: import numpy
  from ...None import gloo
  from .util import fetchcode
  from .base_collection import BaseCollection
  from ..shaders import ModularProgram
  from ...util.event import EventEmitter
label_desc: Use image node_id 1 to create a new CollectionView object from inherited base classes: object with example: obj = CollectionView(collection, transform, viewport)