code: def _maybe_tensor_spec(shape, dtype):
      return tf.TensorSpec(shape, dtype) if dtype is not None else None
  
imports: from typing import Any, Callable
  import tensorflow
  import tree
label_desc: Use image node_id 3 for calling a global function with example usage: _maybe_tensor_spec(shape, dtype) and returns: unknown