def get_reliabledictionary_type_schema(client, application_name, service_name, dictionary_name, type_name, output_file=None):
cluster = Cluster.from_sfclient(client)<EOL>dictionary = cluster.get_application(application_name).get_service(service_name).get_dictionary(dictionary_name)<EOL>result = json.dumps(dictionary.get_complex_type(type_name), indent=<NUM_LIT:4>)<EOL>if (output_file == None):<EOL><INDENT>output_file = "<STR_LIT>".format(application_name, service_name, dictionary_name, type_name)<EOL><DEDENT>with open(output_file, "<STR_LIT:w>") as output:<EOL><INDENT>output.write(result)<EOL><DEDENT>print('<STR_LIT>' + output_file)<EOL>print(result)<EOL>
Query complex type information existing reliable dictionaries for given application and service. Make sure to provide entire namespace for your type if necessary.

    :param application_name: Name of the application.
    :type application_name: str
    :param service_name: Name of the service.
    :type service_name: str
    :param dictionary_name: Name of the reliable dictionary.
    :type dictionary_name: str
    :param type_name: Name of the complex type.
    :type type_name: str
    :param output_file: Optional file to save the schema.