code: def create_python_return_type_bindings_header(
      fm: FileManager,
      pairs: Sequence[PythonSignatureNativeFunctionPair],
      pred: Callable[[NativeFunction], bool],
      filename: str,
  ) -> None:
      """
      Generate function to initialize and return named tuple for native functions
      which returns named tuple and relevant entry for the map in `python_return_types.cpp`.
      """
      py_return_types_declarations: List[str] = []
  
      grouped = group_filter_overloads(pairs, pred)
  
      for name in sorted(grouped.keys(), key=str):
          overloads = grouped[name]
          declarations = generate_return_type_declarations(overloads)
          py_return_types_declarations.append(
              "" if not declarations else "\n".join(declarations)
          )
  
      fm.write_with_template(
          filename,
          filename,
          lambda: {
              "generated_comment": "@"
              + f"generated from {fm.template_dir_for_comments()}/{filename}",
              "py_return_types_declarations": py_return_types_declarations,
          },
      )
  
imports: import itertools
  import re
  from collections import defaultdict
  from typing import Callable, Dict, Iterable, List, Optional, Sequence, Set, Tuple
  import yaml
  from torchgen.api import cpp
  from torchgen.api.python import arg_parser_output_exprs, cpp_dispatch_exprs, cpp_dispatch_target, dispatch_lambda_args, dispatch_lambda_exprs, dispatch_lambda_return_str, has_tensor_options, namedtuple_fieldnames, PythonSignature, PythonSignatureDeprecated, PythonSignatureGroup, PythonSignatureNativeFunctionPair, signature, signature_from_schema
  from torchgen.code_template import CodeTemplate
  from torchgen.context import with_native_function
  from torchgen.gen import cpp_string, parse_native_yaml, parse_tags_yaml
  from torchgen.model import Argument, BaseOperatorName, FunctionSchema, NativeFunction, Type, Variant
  from torchgen.utils import FileManager, split_name_params
  from torchgen.yaml_utils import YamlLoader
  from .gen_trace_type import should_trace
label_desc: Use image node_id 16 for calling a global function with example usage: create_python_return_type_bindings_header(fm, pairs, pred, filename) without return types