code: def __init__(
      self, text=None, link=None, details=None, kind=LinkKind.notebook
  ):
      if text is None:
          if link is None:
              raise ValueError(
                  "must specify at least one of 'text' and 'link'"
              )
  
          text = LINK_DEFAULT_TEXT
  
      self.text = text
      self.link = link
      self.details = details
      self.kind = kind
      assert isinstance(kind, LinkKind)
  
imports: import abc
  import argparse
  import contextlib
  import difflib
  import enum
  import glob
  import itertools
  import json
  import nbformat
  import os.path
  import re
  import subprocess
  import sys
  import textwrap
label_desc: Use image node_id 1 to create a new T object  with example: obj = T(text, link, details, kind)