code: def id_to_fqname(self, uuid, type=None):
          
          data = {
              "uuid": uuid
          }
          result = self.post_json(self.make_url("/id-to-fqname"), data)
          result['fq_name'] = FQName(result['fq_name'])
          if type is not None and not result['type'].replace('_', '-') == type:
              raise HttpError('uuid %s not found for type %s' % (uuid, type), http_status=404)
          return result
docs: Return fq_name and type for uuid
  
          If `type` is provided check that uuid is actually
          a resource of type `type`. Raise HttpError if it's
          not the case.
  
          :param uuid: resource uuid
          :type uuid: UUIDv4 str
          :param type: resource type
          :type type: str
  
          :rtype: dict {'type': str, 'fq_name': FQName}
          :raises HttpError: uuid not found