code: def get_operator(library: str, name: str):
      def no_such_operator(*args, **kwargs):
          raise RuntimeError(
              f"No such operator {library}::{name} - did you forget to build xformers with `python setup.py develop`?"
          )
  
      try:
          return getattr(getattr(torch.ops, library), name)
      except (RuntimeError, AttributeError):
          return no_such_operator
  
imports: import inspect
  import os
  from dataclasses import dataclass
  from functools import wraps
  from typing import Any, Callable, Dict, List, Type, TypeVar, Union
  import torch
  from torch.torch_version import TorchVersion
  from typing_extensions import Annotated, get_args, get_origin
label_desc: Use image node_id 1 for calling a global function with example usage: get_operator(library, name) and returns: getattr, no_such_operator