code: def _calc_statuses(
      statuses: Set[NodeStatus] = None,
      exclude_statuses: Set[NodeStatus] = None,
  ) -> Set[NodeStatus]:
      if statuses:
          return statuses
      elif exclude_statuses is not None:
          return set(NodeStatus.__members__.values()).difference(
              exclude_statuses
          )
      else:
          return {NodeStatus.READY}
  
file_path: mars/mars/services/cluster/api/core.py
imports: from abc import abstractmethod
  from typing import List, Dict, Set
  from ....resource import Resource
  from ....typing import BandType
  from ...core import NodeRole
  from ..core import NodeStatus
label_desc: Use image node_id 1 for calling the AbstractClusterAPI obj's underlying member method code with example usage: obj._calc_statuses(statuses, exclude_statuses) and returns: statuses, set, unknown