<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def discretize_path(self, path):
 """ Given a list of entities, return a list of connected points. Parameters path: (n,) int, indexes of self.entities Returns discrete: (m, dimension) """

        discrete = traversal.discretize_path(self.entities,
                                             self.vertices,
                                             path,
                                             scale=self.scale)
        return discrete