code: def repeated_df(rng):
      n = 100
      return pd.DataFrame(
          dict(
              x=np.tile(np.arange(n // 2), 2),
              y=rng.normal(size=n),
              a=rng.choice(list("abc"), n),
              u=np.repeat(np.arange(2), n // 2),
          )
      )
  
imports: import numpy
  import pandas
  import pytest
label_desc: Use image node_id 18 for calling a global function with example usage: repeated_df(rng) and returns: pd