def get_remote_method_info(method):
 if (not callable(method)):
  return None
 try:
  method_info = method.remote
 except AttributeError:
  return None
 if (not isinstance(method_info, _RemoteMethodInfo)):
  return None
 return method_info

def get_remote_method_info ( method ) : if ( not callable ( method ) ) : return None try : method_info = method . remote except AttributeError : return None if ( not isinstance ( method_info , _RemoteMethodInfo ) ) : return None return method_info
get remote method info object from remote method .