code: def type_to_str(t):
      """Return str of variable type."""
      if not hasattr(t, "broadcastable"):
          return str(t)
      s = broadcastable_to_str(t.broadcastable)
      if s == "":
          s = str(t.dtype)
      else:
          s = dtype_to_char(t.dtype) + s
      return s
  
imports: import os
  from functools import reduce
  import numpy
  import pytensor
  from pytensor.compile import Function, builders
  from pytensor.graph.basic import Apply, Constant, Variable, graph_inputs
  from pytensor.graph.fg import FunctionGraph
  from pytensor.printing import pydot_imported, pydot_imported_msg
label_desc: Use image node_id 7 for calling a global function with example usage: type_to_str(t) and returns: s, str