parameters: (*args)
return_statement: return None
docstring: Find the wrapper for the array with the highest priority.
  
      In case of ties, leftmost wins. If no wrapper is found, return None
docstring_summary: Find the wrapper for the array with the highest priority.
docstring_tokens: Find the wrapper for the array with the highest priority .
function: def get_array_prepare(*args):
      """Find the wrapper for the array with the highest priority.
  
      In case of ties, leftmost wins. If no wrapper is found, return None
      """
      wrappers = [(getattr(x, '__array_priority__', 0), -i,
                   x.__array_prepare__) for i, x in enumerate(args)
                                     if hasattr(x, '__array_prepare__')]
      wrappers.sort()
      if wrappers:
          return wrappers[-1][-1]
      return None
function_tokens: def get_array_prepare ( * args ) : wrappers = [ ( getattr ( x , '__array_priority__' , 0 ) , - i , x . __array_prepare__ ) for i , x in enumerate ( args ) if hasattr ( x , '__array_prepare__' ) ] wrappers . sort ( ) if wrappers : return wrappers [ - 1 ] [ - 1 ] return None