<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_locator(self, path, relative=False):
 """ Returns True if path refer to a locator. Depending the storage, locator may be a bucket or container name, args: path (str):
 path or URL. relative (bool):
 Path is relative to current root. Returns: bool: True if locator. """

        if not relative:
            path = self.relpath(path)
        # Bucket is the main directory
        return path and '/' not in path.rstrip('/')