code: def list_security_groups_in_vpc(self, vpc_id=None):
          
          log = logging.getLogger(self.cls_logger + '.list_security_groups_in_vpc')
          if vpc_id is None and self.vpc_id is not None:
              vpc_id = self.vpc_id
          else:
              msg = 'Unable to determine VPC ID to use to create the Security Group'
              log.error(msg)
              raise EC2UtilError(msg)
  
          # Create a filter on the VPC ID
          filters = [
              {
                  'Name': 'vpc-id',
                  'Values': [vpc_id]
              }
          ]
  
          # Get a list of security groups in the VPC
          log.info('Querying for a list of security groups in VPC ID: {v}'.format(v=vpc_id))
          try:
              security_groups = self.client.describe_security_groups(DryRun=False, Filters=filters)
          except ClientError:
              _, ex, trace = sys.exc_info()
              msg = 'Unable to query AWS for a list of security groups in VPC ID: {v}\n{e}'.format(
                  v=vpc_id, e=str(ex))
              raise AWSAPIError, msg, trace
          return security_groups
docs: Lists security groups in the VPC.  If vpc_id is not provided, use self.vpc_id
  
          :param vpc_id: (str) VPC ID to list security groups for
          :return: (list) Security Group info
          :raises: AWSAPIError, EC2UtilError