class_docstr: Label based node affinity scheduling strategy
  
  scheduling_strategy=NodeLabelSchedulingStrategy({
        "region": In("us"),
        "gpu_type": Exists()
  })
class_docstr_tok: ["Label","based","node","affinity","scheduling","strategy","scheduling_strategy=NodeLabelSchedulingStrategy","(","{","``","region","''",":","In","(","``","us","''",")",",","``","gpu_type","''",":","Exists","(",")","}",")"]
code: def __init__(
      self,
      hard: LabelMatchExpressionsT,
      *,
      soft: LabelMatchExpressionsT = None,
  ):
      self.hard = _convert_map_to_expressions(hard, "hard")
      self.soft = _convert_map_to_expressions(soft, "soft")
      self._check_usage()
  
imports: from typing import Dict, Union, Optional, TYPE_CHECKING
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 1 to create a new NodeLabelSchedulingStrategy object  with example: obj = NodeLabelSchedulingStrategy(hard)