code: def has_distillation(spec):
      return (
          spec.distillation_type
          != distillation_spec_pb2.DistillationSpec.DistillationType.UNKNOWN_DISTILLATION_TYPE
      )
  
imports: import copy
  import enum
  import os
  from model_search import hparam
  from model_search.architecture import architecture_utils
  from model_search.architecture import tower
  from model_search.generators import base_tower_generator
  from model_search.metadata import trial
  from model_search.proto import distillation_spec_pb2
  from model_search.proto import ensembling_spec_pb2
  from model_search.proto import phoenix_spec_pb2
  import tensorflow.compat.v2
  from google.protobuf import text_format
label_desc: Use image node_id 4 for calling a global function with example usage: has_distillation(spec) and returns: unknown