code: def get_security_group(sg_obj, flags=FLAGS.ALL, **conn):
      
      if isinstance(sg_obj, string_types):
          group_arn = ARN(sg_obj)
          if group_arn.error:
              sg_obj = {'GroupId': sg_obj}
          else:
              sg_obj = {'GroupId': group_arn.parsed_name}
  
      return registry.build_out(flags, sg_obj, **conn)
docs: Orchestrates calls to build a Security Group in the following format:
  
      {
          "Description": ...,
          "GroupName": ...,
          "IpPermissions" ...,
          "OwnerId" ...,
          "GroupId" ...,
          "IpPermissionsEgress" ...,
          "VpcId" ...
      }
      Args:
          sg_obj: name, ARN, or dict of Security Group
          flags: Flags describing which sections should be included in the return value. Default ALL
  
      Returns:
          dictionary describing the requested Security Group