def _copy_arrays_if_base_present(T):
 l = [_copy_array_if_base_present(a) for a in T]
 return l

def _copy_arrays_if_base_present ( T ) : l = [ _copy_array_if_base_present ( a ) for a in T ] return l
accepts a tuple of arrays t .