<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_flat(flat):
 """Converts from a flattened coordinate to a Minigo coordinate."""

    if flat == go.N * go.N:
        return None
    return divmod(flat, go.N)