def METHOD_NAME(filepath, num_channels=3):
    """Load image from a ''filepath''.
    # Arguments
        filepath: String indicating full path to the image.
        num_channels: Int.
    # Returns
        Numpy array.
    """
    if num_channels not in [1, 3, 4]:
        raise ValueError('Invalid number of channels')
    image = cv2.imread(filepath, _CHANNELS_TO_FLAG[num_channels])
    if num_channels == 3:
        image = convert_color_space(image, BGR2RGB)
    elif num_channels == 4:
        image = convert_color_space(image, BGRA2RGBA)
    return image