def _create_args(objects, mail_data):
  """Create args to call bulk update/create"""

  if not objects:
    return {}

  arg_list = {}
  arg_list["objects"] = [
      {"type": obj[0], "id": int(obj[1])} for obj in objects
  ]
  arg_list["mail_data"] = mail_data
  return arg_list