<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_new(mapreduce_id=None, gettime=datetime.datetime.now):
 """Create a new MapreduceState. Args: mapreduce_id: Mapreduce id as string. gettime: Used for testing. """

    if not mapreduce_id:
      mapreduce_id = MapreduceState.new_mapreduce_id()
    state = MapreduceState(key_name=mapreduce_id,
                           last_poll_time=gettime())
    state.set_processed_counts([], [])
    return state