original_docstring: Deserializes a TaskGroup from a JSON object.
docstring: Deserializes a TaskGroup from a JSON object.
docstring_tokens: Deserializes a TaskGroup from a JSON object .
code: def deserialize_task_group(
          cls,
          encoded_group: Dict[str, Any],
          parent_group: Optional[TaskGroup],
          task_dict: Dict[str, BaseOperator],
      ) -> Optional[TaskGroup]:
          """Deserializes a TaskGroup from a JSON object."""
          if not encoded_group:
              return None
  
          group_id = cls._deserialize(encoded_group["_group_id"])
          kwargs = {
              key: cls._deserialize(encoded_group[key])
              for key in ["prefix_group_id", "tooltip", "ui_color", "ui_fgcolor"]
          }
          group = SerializedTaskGroup(group_id=group_id, parent_group=parent_group, **kwargs)
          group.children = {
              label: task_dict[val]
              if _type == DAT.OP  # type: ignore
              else SerializedTaskGroup.deserialize_task_group(val, group, task_dict)
              for label, (_type, val) in encoded_group["children"].items()
          }
          group.upstream_group_ids = set(cls._deserialize(encoded_group["upstream_group_ids"]))
          group.downstream_group_ids = set(cls._deserialize(encoded_group["downstream_group_ids"]))
          group.upstream_task_ids = set(cls._deserialize(encoded_group["upstream_task_ids"]))
          group.downstream_task_ids = set(cls._deserialize(encoded_group["downstream_task_ids"]))
          return group
code_tokens: def deserialize_task_group ( cls , encoded_group : Dict [ str , Any ] , parent_group : Optional [ TaskGroup ] , task_dict : Dict [ str , BaseOperator ] , ) -> Optional [ TaskGroup ] : if not encoded_group : return None group_id = cls . _deserialize ( encoded_group [ "_group_id" ] ) kwargs = { key : cls . _deserialize ( encoded_group [ key ] ) for key in [ "prefix_group_id" , "tooltip" , "ui_color" , "ui_fgcolor" ] } group = SerializedTaskGroup ( group_id = group_id , parent_group = parent_group , ** kwargs ) group . children = { label : task_dict [ val ] if _type == DAT . OP else SerializedTaskGroup . deserialize_task_group ( val , group , task_dict ) for label , ( _type , val ) in encoded_group [ "children" ] . items ( ) } group . upstream_group_ids = set ( cls . _deserialize ( encoded_group [ "upstream_group_ids" ] ) ) group . downstream_group_ids = set ( cls . _deserialize ( encoded_group [ "downstream_group_ids" ] ) ) group . upstream_task_ids = set ( cls . _deserialize ( encoded_group [ "upstream_task_ids" ] ) ) group . downstream_task_ids = set ( cls . _deserialize ( encoded_group [ "downstream_task_ids" ] ) ) return group
short_docstring: Deserializes a TaskGroup from a JSON object.
short_docstring_tokens: Deserializes a TaskGroup from a JSON object .
comment: """Deserializes a TaskGroup from a JSON object."""$SEP$# type: ignore