<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def refactor_extract_method(self, start, end, name, make_global):
 """Extract region as a method."""

        refactor = ExtractMethod(self.project, self.resource, start, end)
        return self._get_changes(
            refactor, name, similar=True, global_=make_global
        )