<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def copy_from(self, other_state):
 """Copy data from another shard state entity to self."""

    for prop in self.properties().values():
      setattr(self, prop.name, getattr(other_state, prop.name))