code: def FromReplica(self, replica):
          
          return AccountState(replica.ScriptHash, replica.IsFrozen, replica.Votes, replica.Balances)
docs: Get AccountState object from a replica.
          Args:
              replica (obj): must have ScriptHash, IsFrozen, Votes and Balances members.
  
          Returns:
              AccountState: