<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fromlalcache(cachefile, coltype = int):
 	""" 	Construct a segmentlist representing the times spanned by the files 	identified in the LAL cache contained in the file object file. The 	segmentlist will be created with segments whose boundaries are of 	type coltype, which should raise ValueError if it cannot convert 	its string argument. 	Example: 	See also: 	pycbc_glue.lal.CacheEntry 	"""

	return segments.segmentlist(lal.CacheEntry(l, coltype = coltype).segment for l in cachefile)