code: def masked_select(x, mask, name=None):
      return ivy.flatten(x[mask])
  
file_path: ivy/ivy/functional/frontends/paddle/search.py
imports: import ivy
  from ivy.func_wrapper import with_supported_dtypes
  from ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 6 for calling a global function with example usage: masked_select(x, mask, name) and returns: ivy