code: def get_links(self, ticket_id):
          
          msg = self.__request('ticket/{}/links/show'.format(str(ticket_id), ))
  
          status_code = self.__get_status_code(msg)
          if (status_code == 200):
              pairs = {}
              msg = msg.split('\n')
              if (len(msg) > 2) and self.RE_PATTERNS['does_not_exist_pattern'].match(msg[2]):
                  return None
              i = 2
              while i < len(msg):
                  if ': ' in msg[i]:
                      key, link = self.split_header(msg[i])
                      links = [link.strip()]
                      j = i + 1
                      pad = len(key) + 2
                      # loop over next lines for the same key
                      while (j < len(msg)) and msg[j].startswith(' ' * pad):
                          links[-1] = links[-1][:-1]  # remove trailing comma from previous item
                          links.append(msg[j][pad:].strip())
                          j += 1
                      pairs[key] = links
                      i = j - 1
                  i += 1
              return pairs
          else:
              raise UnexpectedMessageFormat('Received status code is {:d} instead of 200.'.format(status_code))
docs: Gets the ticket links for a single ticket.
  
          :param ticket_id: ticket ID
          :returns: Links as lists of strings in dictionary with these keys
                    (just those which are defined):
  
                        * id
                        * Members
                        * MemberOf
                        * RefersTo
                        * ReferredToBy
                        * DependsOn
                        * DependedOnBy
  
                    None is returned if ticket does not exist.
          :raises UnexpectedMessageFormat: In case that returned status code is not 200