code: def get_struct(name):
      
      sid = idc.GetStrucIdByName(name)
      if sid == idaapi.BADADDR:
          raise exceptions.SarkStructNotFound()
  
      return sid
docs: Get a struct by it's name.
  
      Args:
          name: The name of the struct
  
      Returns:
          The struct's id
  
      Raises:
          exceptions.SarkStructNotFound: is the struct does not exist.