code: def get_groups_by_path(self, path, parent=None):
          
          groups = self.objects.get_objects_in_section(u'PBXGroup')
          groups = [group for group in groups if group.get_path() == path]
  
          if parent:
              return [group for group in groups if parent.has_child(group)]
  
          return groups
docs: Retrieve all groups matching the given path and optionally filtered by the given parent node.
          The path is converted into the absolute path of the OS before comparison.
          :param path: The name of the group that has to be returned
          :param parent: A PBXGroup object where the object has to be retrieved from. If None all matching groups are returned
          :return: An list of all matching groups