


'''simple docstring'''




def 	a_					( lowerCamelCase	:     list[list[int]]	, lowerCamelCase	:     int	, lowerCamelCase	:     int	, lowerCamelCase	:     set				):
   lowerCAmelCase     ,  lowerCAmelCase     =			len(lowerCamelCase				), len(grid[0]				)
   if (
       min(lowerCamelCase	, lowerCamelCase				) < 0
       or row == row_length
       or col == col_length
       or (row, col) in visit
       or grid[row][col] == 1
   ):
      return 0
   if row == row_length - 1 and col == col_length - 1:
      return 1

   visit.add((row, col)				)

   lowerCAmelCase     =			0
   count += depth_first_search(lowerCamelCase	, row + 1	, lowerCamelCase	, lowerCamelCase				)
   count += depth_first_search(lowerCamelCase	, row - 1	, lowerCamelCase	, lowerCamelCase				)
   count += depth_first_search(lowerCamelCase	, lowerCamelCase	, col + 1	, lowerCamelCase				)
   count += depth_first_search(lowerCamelCase	, lowerCamelCase	, col - 1	, lowerCamelCase				)

   visit.remove((row, col)				)
   return count


if __name__ == "__main__":
       import doctest

       doctest.testmod()









'''simple docstring'''




import warnings

from ...utils import logging
from .image_processing_flava import FlavaImageProcessor


__snake_case    						=logging.get_logger(__name__)

class 		UpperCAmelCase_      (  __lowercase		):





     def __init__( self       :      Dict    ,      *UpperCAmelCase__       :      Dict    ,      **UpperCAmelCase__       :      List[str]    )				->  None:
        warnings.warn(
            'The class FlavaFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
            ' use FlavaImageProcessor instead.'    ,      UpperCAmelCase__    ,      )
        super().__init__(*UpperCAmelCase__    ,      **UpperCAmelCase__    )





