def verify_client_object(test):
 if ((str(type(test)) == "<class 'mock.Mock'>") or (str(type(test)) == "<class 'mock.mock.Mock'>")):
  pass
 elif (not isinstance(test, elasticsearch.Elasticsearch)):
  raise TypeError('Not a client object. Type: {0}'.format(type(test)))

def verify_client_object ( test ) : if ( ( str ( type ( test ) ) == "<class 'mock.Mock'>" ) or ( str ( type ( test ) ) == "<class 'mock.mock.Mock'>" ) ) : pass elif ( not isinstance ( test , elasticsearch . Elasticsearch ) ) : raise TypeError ( 'Not a client object. Type: {0}' . format ( type ( test ) ) )
test if test is a proper :class:elasticsearch .