original_docstring: This function will be used to build the plot image and add transforms
docstring: This function will be used to build the plot image and add transforms
docstring_tokens: This function will be used to build the plot image and add transforms
code: def mix_npy_blocks(img):
      "This function will be used to build the plot image and add transforms"
      # Cut the image in half and stack the chunks side-by-side
      chunk0 = img[:40, :20, :]
      chunk1 = img[40:80, :20, :]  
  
      if random.choice([True,False]):
          chunk0 = np.flip(chunk0[:,:,:], axis=0) # Flip vertically equals img[X,:,:]
      if random.choice([True,False]):
          chunk1 = np.flip(chunk1[:,:,:], axis=0) # Flip vertically equals img[X,:,:]
      if random.choice([True,False]):
          chunk0 = np.flip(chunk0[:,:,:], axis=1) # Flip horizontally equals img[:,X,:]
      if random.choice([True,False]):
          chunk1 = np.flip(chunk1[:,:,:], axis=1) # Flip horizontally equals img[:,X,:]
  
      if random.choice([True,False]):
          new_img = np.hstack((chunk0, chunk1))
      else:
          new_img =np.hstack((chunk1, chunk0))
      
      return  new_img
code_tokens: def mix_npy_blocks ( img ) : chunk0 = img [ : 40 , : 20 , : ] chunk1 = img [ 40 : 80 , : 20 , : ] if random . choice ( [ True , False ] ) : chunk0 = np . flip ( chunk0 [ : , : , : ] , axis = 0 ) if random . choice ( [ True , False ] ) : chunk1 = np . flip ( chunk1 [ : , : , : ] , axis = 0 ) if random . choice ( [ True , False ] ) : chunk0 = np . flip ( chunk0 [ : , : , : ] , axis = 1 ) if random . choice ( [ True , False ] ) : chunk1 = np . flip ( chunk1 [ : , : , : ] , axis = 1 ) if random . choice ( [ True , False ] ) : new_img = np . hstack ( ( chunk0 , chunk1 ) ) else : new_img = np . hstack ( ( chunk1 , chunk0 ) ) return new_img
short_docstring: This function will be used to build the plot image and add transforms
short_docstring_tokens: This function will be used to build the plot image and add transforms
comment: "This function will be used to build the plot image and add transforms"$SEP$# Cut the image in half and stack the chunks side-by-side$SEP$# Flip vertically equals img[X,:,:]$SEP$# Flip vertically equals img[X,:,:]$SEP$# Flip horizontally equals img[:,X,:]$SEP$# Flip horizontally equals img[:,X,:]