code: def has_parent_group(self, group):
          
          if isinstance(group, str):
              return self._has_parent_group_by_name(group)
  
          else:
              return self._has_parent_group_by_object(group)
docs: Retuns whether the object is a child of the :obj:`Group` ``group``