code: def _GetInputDtypes(func):
      """Returns the input dtypes of func, excluding dtypes for captured inputs."""
      if isinstance(
          func, function._DefinedFunction
      ):  # pylint: disable=protected-access
          return func.declared_input_types
  
      # We assume that `func` is a ConcreteFunction here, but we are not able to
      # verify since importing eager function library will cause cyclic dependence.
      #
      # ConcreteFunction.inputs includes captured inputs.
      num_non_captured_inputs = len(func.inputs) - len(
          func.captured_inputs
      )
      inputs_without_captured = func.inputs[:num_non_captured_inputs]
      return [t.dtype for t in inputs_without_captured]
  
imports: from tensorflow.core.framework import attr_value_pb2
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import function
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_functional_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import tensor_array_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import while_loop
  from tensorflow.python.ops.gen_functional_ops import remote_call
  from tensorflow.python.ops.gen_functional_ops import symbolic_gradient
  from tensorflow.python.util import deprecation
  from tensorflow.python.util import dispatch
  from tensorflow.python.util import nest
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 9 for calling a global function with example usage: _GetInputDtypes(func) and returns: unknown, func