class_docstr: A base class for a node in the graph of a workflow.
  
  A node may be an Operator or a Task Group, either mapped or unmapped.
docstr: Get set of the direct relative ids to the current task, upstream or downstream.
code: def get_direct_relative_ids(self, upstream: bool = False) -> set[str]:
      """Get set of the direct relative ids to the current task, upstream or downstream."""
      if upstream:
          return self.upstream_task_ids
      else:
          return self.downstream_task_ids
  
imports: from __future__ import annotations
  import warnings
  from abc import ABCMeta, abstractmethod
  from typing import TYPE_CHECKING, Any, Iterable, Sequence
  from airflow.exceptions import AirflowException, RemovedInAirflow3Warning
  from airflow.utils.types import NOTSET
label_desc: Use image node_id 13 for calling the DAGNode obj's underlying member method code with example usage: obj.get_direct_relative_ids(upstream) and returns: self, self