code: def get_static_shape(tensor):
      shape = paddle.shape(tensor)
      shape.stop_gradient = True
      return shape
  
imports: import paddle
  import paddle.nn.functional
  import paddle.nn
  from paddle import ParamAttr
  from paddle.regularizer import L2Decay
  from paddle import in_dynamic_mode
  from paddle.common_ops_import import Variable, LayerHelper, check_variable_and_dtype, check_type, check_dtype
label_desc: Use image node_id 17 for calling a global function with example usage: get_static_shape(tensor) and returns: shape