code: def pnum_to_processor_coordinates(mesh_shape, pnum):
    
    ret = []
    for dimsize in mesh_shape.to_integer_list[::-1]:
      ret.append(pnum % dimsize)
      pnum //= dimsize
    return ret[::-1]
docs: Coordinates of a processor in the mesh.
  
    Args:
      mesh_shape: a Shape
      pnum: an integer less than len(mesh_shape)
  
    Returns:
      a list of integers with length len(mesh_shape)