code: def _query_object_with_condition(o, conditions):
      try:
          return o.iloc[conditions]
      except AttributeError:
          return o[conditions]
  
file_path: mars/mars/services/task/execution/ray/fetcher.py
imports: import asyncio
  import functools
  from collections import namedtuple
  from typing import Dict, List
  from .....utils import lazy_import
  from ..api import Fetcher, register_fetcher_cls
label_desc: Use image node_id 1 for calling a global function with example usage: _query_object_with_condition(o, conditions) and returns: o, o