code: def get_inputs(self, _visited=None):
          
          if _visited is None:
              _visited = set()
  
          _visited.add(self)
  
          for i in self.inputs:
              if i not in _visited:
                  i.get_inputs(_visited)
  
          return _visited
docs: Returns: the set of all input steps