parameters: (self, ticket, search_key, search_type)
return_statement: return instance_dicts
docstring: Get all the instances of an sobject of a certain stype.  There
          must be an instance relationship between the sobject and the search
          type
  
          @param:
          search_key: the search_key to the sobject to get the instances
          search_type: the search_type of the related sobjects that the instances
              are attached to
  
          @return:
          the instance sobject created
docstring_summary: Get all the instances of an sobject of a certain stype.  There
          must be an instance relationship between the sobject and the search
          type
docstring_tokens: Get all the instances of an sobject of a certain stype . There must be an instance relationship between the sobject and the search type
function: def get_instances(self, ticket, search_key, search_type):
          '''Get all the instances of an sobject of a certain stype.  There
          must be an instance relationship between the sobject and the search
          type
  
          @param:
          search_key: the search_key to the sobject to get the instances
          search_type: the search_type of the related sobjects that the instances
              are attached to
  
          @return:
          the instance sobject created
          '''
          sobjects = self._get_sobjects(search_key)
          if sobjects:
              sobject = sobjects[0]
          else:
              raise ApiException("SObject [%s] does not exist" % search_key1)
  
          instances = sobject.get_instances(search_type)
  
          instance_dicts = []
          for instance in instances:
              instance_dict = self._get_sobject_dict(instance)
  
              instance_dicts.append(instance_dict)
          return instance_dicts
function_tokens: def get_instances ( self , ticket , search_key , search_type ) : sobjects = self . _get_sobjects ( search_key ) if sobjects : sobject = sobjects [ 0 ] else : raise ApiException ( "SObject [%s] does not exist" % search_key1 ) instances = sobject . get_instances ( search_type ) instance_dicts = [ ] for instance in instances : instance_dict = self . _get_sobject_dict ( instance ) instance_dicts . append ( instance_dict ) return instance_dicts