parameters: (
        self, artifact_ids: Iterable[int])
return_statement: return result
docstring: Gets all events with matching artifact ids.
  
      Args:
        artifact_ids: a list of artifact ids.
  
      Returns:
        Events with the execution IDs given.
  
      Raises:
        errors.InternalError: if query execution fails.
docstring_summary: Gets all events with matching artifact ids.
docstring_tokens: Gets all events with matching artifact ids .
function: def get_events_by_artifact_ids(
        self, artifact_ids: Iterable[int]) -> List[proto.Event]:
      """Gets all events with matching artifact ids.
  
      Args:
        artifact_ids: a list of artifact ids.
  
      Returns:
        Events with the execution IDs given.
  
      Raises:
        errors.InternalError: if query execution fails.
      """
  
      request = metadata_store_service_pb2.GetEventsByArtifactIDsRequest()
      for x in artifact_ids:
        request.artifact_ids.append(x)
      response = metadata_store_service_pb2.GetEventsByArtifactIDsResponse()
  
      self._call('GetEventsByArtifactIDs', request, response)
      result = []
      for x in response.events:
        result.append(x)
      return result
function_tokens: def get_events_by_artifact_ids ( self , artifact_ids : Iterable [ int ] ) -> List [ proto . Event ] : request = metadata_store_service_pb2 . GetEventsByArtifactIDsRequest ( ) for x in artifact_ids : request . artifact_ids . append ( x ) response = metadata_store_service_pb2 . GetEventsByArtifactIDsResponse ( ) self . _call ( 'GetEventsByArtifactIDs' , request , response ) result = [ ] for x in response . events : result . append ( x ) return result