code: def from_statements(
          cls, sts: List[Influence], assign_default_polarities: bool = True
      ):
          
  
          _dict = {}
          for s in sts:
              if assign_default_polarities:
                  for delta in deltas(s):
                      if delta["polarity"] is None:
                          delta["polarity"] = 1
              concepts = nameTuple(s)
  
              # Excluding self-loops for now:
              if concepts[0] != concepts[1]:
                  if all(
                      map(exists, (delta["polarity"] for delta in deltas(s)))
                  ):
                      if concepts in _dict:
                          _dict[concepts].append(s)
                      else:
                          _dict[concepts] = [s]
  
          edges = [
              (*concepts, {"InfluenceStatements": statements})
              for concepts, statements in _dict.items()
          ]
          return cls(edges)
docs: Construct an AnalysisGraph object from a list of INDRA statements.
          Unknown polarities are set to positive by default.
  
          Args:
              sts: A list of INDRA Statements
  
          Returns:
              An AnalysisGraph instance constructed from a list of INDRA
              statements.