code: def make_shape_function_type(*shape):
      return function_type.FunctionType(
          [
              function_type.Parameter(
                  "x",
                  function_type.Parameter.POSITIONAL_ONLY,
                  False,
                  MockShape(*shape),
              )
          ]
      )
  
imports: from typing import Optional
  from tensorflow.core.function.polymorphism import function_type
  from tensorflow.core.function.polymorphism import type_dispatch
  from tensorflow.python.platform import test
  from tensorflow.python.types import trace
label_desc: Use image node_id 1 for calling a global function with example usage: make_shape_function_type() and returns: function_type