class_docstr: A class used for getting runtime context.
docstr: Get if the current task should capture parent's placement group.
  
  This returns True if it is called inside a driver.
  
  Returns:
      Return True if the current task should implicitly
          capture the parent placement group.
docstr_tok: ["Get","if","the","current","task","should","capture","parent","'s","placement","group",".","This","returns","True","if","it","is","called","inside","a","driver",".","Returns",":","Return","True","if","the","current","task","should","implicitly","capture","the","parent","placement","group","."]
code: def should_capture_child_tasks_in_placement_group(self):
      """Get if the current task should capture parent's placement group.
  
      This returns True if it is called inside a driver.
  
      Returns:
          Return True if the current task should implicitly
              capture the parent placement group.
      """
      return self.worker.should_capture_child_tasks_in_placement_group
  
imports: import logging
  from typing import Any, Dict, List, Optional
  import ray._private.worker
  from ray._private.client_mode_hook import client_mode_hook
  from ray._private.utils import pasre_pg_formatted_resources_to_original
  from ray._raylet import TaskID
  from ray.runtime_env import RuntimeEnv
  from ray.util.annotations import Deprecated, PublicAPI
label_desc: Use image node_id 18 for calling the RuntimeContext obj's underlying member method code with example usage: obj.should_capture_child_tasks_in_placement_group() and returns: self