code: def string_length(input, name=None, unit="BYTE"):
      """Computes the length of each string given in the input tensor.
  
      >>> strings = tf.constant(['Hello','TensorFlow', '🙂'])
      >>> tf.strings.length(strings).numpy() # default counts bytes
      array([ 5, 10, 4], dtype=int32)
      >>> tf.strings.length(strings, unit="UTF8_CHAR").numpy()
      array([ 5, 10, 1], dtype=int32)
  
      Args:
        input: A `Tensor` of type `string`. The strings for which to compute the
          length for each element.
        name: A name for the operation (optional).
        unit: An optional `string` from: `"BYTE", "UTF8_CHAR"`. Defaults to
          `"BYTE"`. The unit that is counted to compute string length.  One of:
            `"BYTE"` (for the number of bytes in each string) or `"UTF8_CHAR"` (for
            the number of UTF-8 encoded Unicode code points in each string). Results
            are undefined if `unit=UTF8_CHAR` and the `input` strings do not contain
            structurally valid UTF-8.
  
      Returns:
        A `Tensor` of type `int32`, containing the length of the input string in
        the same element of the input tensor.
      """
      return gen_string_ops.string_length(input, unit=unit, name=name)
  
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_parsing_ops
  from tensorflow.python.ops import gen_string_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.gen_string_ops import *
  from tensorflow.python.util import compat
  from tensorflow.python.util import deprecation
  from tensorflow.python.util import dispatch
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 9 for calling a global function with example usage: string_length(input, name, unit) and returns: gen_string_ops