def CreateRPC(service='datastore_v3',
              deadline=None, callback=None, read_policy=None):
  assert service == 'datastore_v3'
  conn = _GetConnection()
  config = None
  if deadline is not None:
    config = datastore_rpc.Configuration(deadline=deadline)
  rpc = conn.create_rpc(config)
  rpc.callback = callback
  if read_policy is not None:
    rpc.read_policy = read_policy
  return rpc
Create an rpc for use in configuring datastore calls.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/datastore.py/CreateRPC