code: def _check_infinite_flows(self, steps, flows=None):
          
          if flows is None:
              flows = []
          for step in steps.values():
              if "flow" in step:
                  flow = step["flow"]
                  if flow == "None":
                      continue
                  if flow in flows:
                      raise FlowInfiniteLoopError(
                          "Infinite flows detected with flow {}".format(flow)
                      )
                  flows.append(flow)
                  flow_config = self.project_config.get_flow(flow)
                  self._check_infinite_flows(flow_config.steps, flows)
docs: Recursively loop through the flow_config and check if there are any cycles.
  
          :param steps: Set of step definitions to loop through
          :param flows: Flows already visited.
          :return: None