parameters: (self)
return_statement: return container
docstring: Acquire a preallocated container and returns its user path.
  
          An EmptyPoolError is raised if no containers are ready.
docstring_summary: Acquire a preallocated container and returns its user path.
docstring_tokens: Acquire a preallocated container and returns its user path .
function: def acquire(self):
          '''Acquire a preallocated container and returns its user path.
  
          An EmptyPoolError is raised if no containers are ready.'''
  
          if not self.available:
              raise EmptyPoolError()
  
          container = self.available.pop()
          # signal start on acquisition
          self.started[container.id] = datetime.utcnow()
          return container
function_tokens: def acquire ( self ) : if not self . available : raise EmptyPoolError ( ) container = self . available . pop ( ) # signal start on acquisition self . started [ container . id ] = datetime . utcnow ( ) return container