code: def find_secgroup(self, name):
          
          res = self.ec2.get_all_security_groups(filters={'group-name': name})
          if res:
              return EC2SecGroup(res[0])
docs: Find a security group by name.
  
          Returns a :class:`EC2SecGroup` instance if found, otherwise returns
          None.