def insert_shape(original_shape, shape_to_be_inserted, dim):
    """Returns a shape resulting from inserting a given shape into an original shape at position dim"""
    shape_before_dim = original_shape[0:dim]
    shape_after_dim = original_shape[dim:]
    final_shape = shape_before_dim + shape_to_be_inserted + shape_after_dim
    return final_shape