parameters: (imgs, tile_shape, concatenated_image, margin_color=None)
return_statement: return concatenated_image
docstring: Concatenate images whose sizes are same.
  
      @param imgs: image list which should be concatenated
      @param tile_shape: shape for which images should be concatenated
      @param concatenated_image: returned image. if it is None, new image will be created.
docstring_summary: Concatenate images whose sizes are same.
docstring_tokens: Concatenate images whose sizes are same .
function: def _tile_images(imgs, tile_shape, concatenated_image, margin_color=None):
      """Concatenate images whose sizes are same.
  
      @param imgs: image list which should be concatenated
      @param tile_shape: shape for which images should be concatenated
      @param concatenated_image: returned image. if it is None, new image will be created.
      """
      x_num, y_num = tile_shape
      one_width = imgs[0].shape[1]
      one_height = imgs[0].shape[0]
      if concatenated_image is None:
          concatenated_image = np.zeros((one_height * y_num, one_width * x_num, 3),
                                        dtype=np.uint8)
          if margin_color is not None:
              concatenated_image[:, :] = margin_color
      for y in range(y_num):
          for x in range(x_num):
              i = x + y * x_num
              if i >= len(imgs):
                  pass
              else:
                  concatenated_image[y*one_height:(y+1)*one_height,x*one_width:(x+1)*one_width,] = imgs[i]
      return concatenated_image
function_tokens: def _tile_images ( imgs , tile_shape , concatenated_image , margin_color = None ) : x_num , y_num = tile_shape one_width = imgs [ 0 ] . shape [ 1 ] one_height = imgs [ 0 ] . shape [ 0 ] if concatenated_image is None : concatenated_image = np . zeros ( ( one_height * y_num , one_width * x_num , 3 ) , dtype = np . uint8 ) if margin_color is not None : concatenated_image [ : , : ] = margin_color for y in range ( y_num ) : for x in range ( x_num ) : i = x + y * x_num if i >= len ( imgs ) : pass else : concatenated_image [ y * one_height : ( y + 1 ) * one_height , x * one_width : ( x + 1 ) * one_width , ] = imgs [ i ] return concatenated_image