def Type(tpe):
    """
    A criterion used to search for records of the type defined by `tpe`. For example
    
    * search for objects of type 'audit'
    * search for objects of type 'alert'

    Arguments:
        tpe (str): object type's name as defined in TheHive: `all`, `case`, `case_task`, `case_task_log`, `case_artifact`, `alert`, `case_artifact_job`, `audit`

    Returns:
        dict: JSON repsentation of the criterion
            ```python
            # Query to search for alerts
            query = Type('alert')
            ```
            produces
            ```json
            {
                "_type": "alert"
            }
            ```
    """
    return {'_type': tpe}