parameters: (input_value: str)
return_statement: return node_name, shape, value, data_type
docstring: Parses a value of the --input command line parameter and gets a node name, shape and value.
      The node name includes a port if it is specified.
      Shape and value is equal to None if they are not specified.
      Parameters
      ----------
      input_value
          string with a specified node name, shape, value and data_type.
          E.g. 'node_name:0[4]{fp32}->[1.0 2.0 3.0 4.0]'
  
      Returns
      -------
          Node name, shape, value, data type
          E.g. 'node_name:0', '4', [1.0 2.0 3.0 4.0], np.float32
docstring_summary: Parses a value of the --input command line parameter and gets a node name, shape and value.
      The node name includes a port if it is specified.
      Shape and value is equal to None if they are not specified.
      Parameters
      ----------
      input_value
          string with a specified node name, shape, value and data_type.
          E.g. 'node_name:0[4]{fp32}->[1.0 2.0 3.0 4.0]'
docstring_tokens: Parses a value of the -- input command line parameter and gets a node name shape and value . The node name includes a port if it is specified . Shape and value is equal to None if they are not specified . Parameters ---------- input_value string with a specified node name shape value and data_type . E . g . node_name : 0 [ 4 ] { fp32 } - > [ 1 . 0 2 . 0 3 . 0 4 . 0 ]
function: def parse_input_value(input_value: str):
      """
      Parses a value of the --input command line parameter and gets a node name, shape and value.
      The node name includes a port if it is specified.
      Shape and value is equal to None if they are not specified.
      Parameters
      ----------
      input_value
          string with a specified node name, shape, value and data_type.
          E.g. 'node_name:0[4]{fp32}->[1.0 2.0 3.0 4.0]'
  
      Returns
      -------
          Node name, shape, value, data type
          E.g. 'node_name:0', '4', [1.0 2.0 3.0 4.0], np.float32
      """
      data_type = get_data_type_from_input_value(input_value)
      node_name = get_node_name_with_port_from_input_value(input_value)
      value = get_value_from_input_value(input_value)
      shape = get_shape_from_input_value(input_value)
      value_size = np.prod(len(value)) if isinstance(value, list) else 1
  
      if value is not None and shape is not None:
          for dim in shape:
              if isinstance(dim, tuple) or dim == -1:
                  raise Error("Cannot freeze input with dynamic shape: {}".format(shape))
  
      if shape is not None and value is not None and np.prod(shape) != value_size:
          raise Error("The shape '{}' of the input node '{}' does not correspond to the number of elements '{}' in the "
                      "value: {}".format(shape, node_name, value_size, value))
      return node_name, shape, value, data_type
function_tokens: def parse_input_value ( input_value : str ) : data_type = get_data_type_from_input_value ( input_value ) node_name = get_node_name_with_port_from_input_value ( input_value ) value = get_value_from_input_value ( input_value ) shape = get_shape_from_input_value ( input_value ) value_size = np . prod ( len ( value ) ) if isinstance ( value , list ) else 1 if value is not None and shape is not None : for dim in shape : if isinstance ( dim , tuple ) or dim == - 1 : raise Error ( "Cannot freeze input with dynamic shape: {}" . format ( shape ) ) if shape is not None and value is not None and np . prod ( shape ) != value_size : raise Error ( "The shape '{}' of the input node '{}' does not correspond to the number of elements '{}' in the " "value: {}" . format ( shape , node_name , value_size , value ) ) return node_name , shape , value , data_type